B&K 4071 user manual Binary Format, Rules for Binary format, Example

Page 64

7.8.6 Binary Format

This is the fastest way to send points to the 4071 since it transfers the data point with only 2 characters. (It is also the least forgiving as far as getting the data sent correctly).

Each data point is a 16-bit word, which is sent to the 4071 in two bytes. The high byte is sent first, followed by the low byte.

The 16 bit value is in "two's complement" format, which represents a number from -1.0 to +1.0 as follows:

8000

---- E000

---- FFFF,0

---- 4000

---- 7FFF

 

 

-1.0

-.5

0.0

+.5

+1.0

Although a 16 bit value is sent to the 4071, the Arbitrary Waveform system uses a 12 bit D/A converter, so not all 16 bits are used. Only the uppermost 12 bits are used to form the arbitrary waveform point. The fourth lowest bit (bit 3) is sent directly to the SYNC Out connector on the front of the 4071.

Example: The data value E468 is handled as follows:

E

4

6

8

1

1

1

0

0 1 0 0

0 1 1 0

1

0

0

0

These 12 bits are sent to the DAC

This bit is sent to the SYNC Out Connector

 

Rules for Binary format:

1.IMMEDIATELY after the “B” character in the header the 4071 expects the first high byte of data point 1. No white space is allowed after the “B” in Binary mode.

2.The high byte of each data point is sent first, followed by the low byte.

3.The SYNC Out output is controlled by bit #3 in the low byte. If this bit is set to 1, SYNC Out is set high. If this bit is set to 0, SYNC Out is set low.

Example

A 10 point waveform in binary format with SYNC Out set high point #3. This is the same waveform data that is given as an example in the Hexadecimal format section.

W B<00><00><40><00><fe><d8><45><70><80><00><ff><f0><e6><d0><00><10><00><f0><0c><06>

where <xx> represents the 8 bit binary value of the data byte sent to the 4071. Note how white space is NOT allowed in Binary mode and the binary data begins immediately after the “B” character.

NOTE: In binary format, you cannot use an “X” character to denote the end of data. (Since the ASCII “X” byte could be interpreted as another binary value).

NOTE: ASCII characters do not represent these data values. A binary disk file cannot be viewed using an ordinary text editor. (Garbled, non-printable characters will result). You must use a hex editor to view such a file.

59

BK Precision 4071 User Manual Rev.2.2

Image 64
Contents User’s Manual Page Model User’s Manual +K Precision CorpTable of Contents Warranty information Remote operationArbitrary waveform system DC Operation OptionIntroduction Description Feature summary ModesSync out connector Installation and setupSIG Out connector External Modulation In connector External Trigger/Gating/FSK/BPSK input External Reference Input / Ext Arb. Clock connector External Arb Sync In / Out connectorRS232 Interface connector Line in connectorMode key Operating controls and keysField arrow keys Recall / Store keyNumeric keys 0 to 9, Trigger keyÉ, ê, è, ç keys Clear key One Touch Mode KeysMHz/dBm, KHz/Vp-p/Sec, Hz/mVp-p/mS keys Operating mode selection Operating guideChanging frequency Changing levelModifying an existing value Changing valuesEntering a new value Basic Sinewave CW Mode Mode descriptionsSinewave Mode 000,000.00 Hz 10.0 dBm Internal AM Mode External AM Mode External AM Mode ParametersExternal AM Input gain 000,000.00 Hz PEP level -10.0 dBm Input GainInternal FM Mode Internal FM Mode ParametersInt FM 1,000 Hz Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBm Peak Frequency DeviationExternal FM Mode Parameters External FM ModeExternal FM Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBm Internal PM Mode Internal PM Mode ParametersPeak Phase Deviation Int PM 1,000 Hz Pk dev 180 deg 000,000.00 Hz 10.0 dBmExternal PM Mode Parameters External PM ModeExternal PM Pk dev 180 deg 000,000.00 Hz 10.0 dBm Sweep Mode Up / Down sweep Sweep timeInternal FSK Mode Internal FSK Mode ParametersMark Frequency Space FrequencyExternal FSK Mode External FSK Mode ParametersExt FSK Mark 1,000,000.00 Hz Space 2,000,000.00 Hz 10.0 dBm Ext FSK InputBurst Mode Trig Ton 10,000 mS 000,000.00 Hz Off 10.0 dBm Burst Mode IntroductionBurst frequency Internal SSB Mode Internal SSB Mode ParametersInt SSB 1,000 Hz Upper Sideband 000,000.00 Hz 10.0 dBm Upper/Lower Sideband selectionsExternal SSB Mode Parameters External SSB ModeExternal SSB Upper Sideband 000,000.00 Hz 10.0 dBm Dtmf Generation Mode Dtmf generation # Duration 200 mS Delay Level -10.0 dBmDtmf Generation Mode Parameters BackgroundDtmf Delay Dtmf DurationDtmf Detection Mode Dtmf Detection Mode ParametersDtmf detection on Ext Mod input 3 # a Dtmf detected digitsPower & Voltage Measurement Mode Power & Voltage Measurement Mode ParametersPower Level Voltage LevelRemote Mode Arbitrary ModeOther mode Internal Bpsk Mode Parameters Internal Bpsk ModeInt Bpsk 1,000 Hz 000,000.00 Hz 10.0 dBm External Bpsk Mode Parameters External Bpsk ModeExternal Bpsk 000,000.00 Hz 10.0 dBm Dualtone Generation Mode 10,000 Hz F2 Ton 000 mS Toff 10.0Dualtone Examples Data Modulation Mode Using the Data Modulation ModeData Modulation Mode Parameters Baud RateDownloading Modulation Message Data Example MessageTriggering the Transmission Saving the MessageVoltage Controlled Oscillator VCO Mode VCO Mode ParametersStart End 1,000,000.00 Hz 10.0 dBm End FrequencyRemote Operation ConnectingChecking your connection with Hyper Terminal Remote Control Operation Remote Control Programming RulesRemote Control Commands Reset 4071 to Sine wave mode× Ø Returns CE1,0 Enable, Disable LCD echo to terminal K1.0 Enable, Disable front panel keys and rotary knobReport hardware and software versions Stp 31,500,000.00 Hz Linear Trig Up Time 10,000 mSF0-9 Move cursor to field 0 to ? or H Print help menuRemote Control Examples ExampleQuick Start Guide Arbitrary Waveform ModePin 9-pin cable Pin 25 pin cable adapter Introduction to the Arbitrary Waveform System Description of the Arbitrary Waveform GeneratorSwitching Modes Feature SummaryFunction Generator Pulse GeneratorArbitrary Waveform Mode Int Clock / Ext Clock / Lock Master Lock slave modePhase Continuous/Triggered modeFunction Generator Mode Function Gen Wave Pos Ramp Rep Freq 100,000 Hz 000 mVWaveform Repetition FrequencyPositive Only Pulse Generator ModeDuty Cycle Using WAVELOAD.EXE Downloading arbitrary waveformsSaving Arbitrary Waveforms Cwaveload /COMx /y /baudz filename.extUsing your own program Floating Point Format Data FormatsRules for Floating Point format Time & Value Floating Point Format Example #2Digital Format Integer Format Rules for Integer formatRules for Hexadecimal format Hexadecimal FormatExample The data value E468 is handled as follows Rules for Binary format Binary FormatExample Arb Multiple Units LockingGenerator More on Phase Offsets Phase ResolutionStarting Address = Number of waveform points * Phase Offset Waveform Size RestrictionsExample Arb Program Program Listing ARB.BASClose System Subroutines Return Print #1, a Send integer value to Return Return Wiring Diagram DC Operation Option4071 Specifications Operating ModesSoftware CD RemoteHardware Setup Appendix aCLS CLS Print Print Subroutines END SUB Television Remote Control Example Appendix BCLS Make sure a 4071 is attached to the serial port Print Limited Two-Year Warranty Service Information Savi Ranch Pkwy Yorba Linda, CA 92887 USA TEL