B&K 4071 user manual Return

Page 70

 

IF PointNumber = 1 THEN PRINT #1, "WF" ' Put header info before 1st data point

 

IF PointNumber = 2 THEN PRINT #1, "p" ' Set SYNC Out bit for second point

 

PRINT #1, PointVal

' Send Floating point number to 4071

 

RETURN

 

'-------------------------

Send Integer data to 4071 ----------------------

'This format sends a base 10 number which is in the range -2047 to +2047

'The integer numbers represent -1.0 to +1.0 as follows:

'

 

 

 

 

 

'

-2047

---- -1024 ---

0 ----

1024 ----

2047

'

-1.0

-.5 0.0

+.5

+1.0

 

'

 

 

 

 

 

'Rules for Integer format:

'1. The 4071 expects all Integer values to be between -2047 and +2047.

'If a number falls outside that range, the number is set to -2047 or +2047.

'These correspond to the peak values of the waveform. If the output voltage

'level were set for 5V p-p, for example, then +2047 corresponds to +2.5V

'and -2047 corresponds to -2.5V (across a 50 ohm load). For maximum signal

'fidelity, you should design your waveform so that the peak values "just

'fit" into the range of +2047 to -2047. You will then be using the full

'output range of the DAC.

'

'2. To separate each number, you may use commas, tabs, spaces, carriage

'returns and/or linefeeds, semicolons, colons or basically any character

'that is not among the following:

'

0 1 2 3 4 5 6 7 8 9 . - + e E

'

 

'3. Use of the "+" character for positive values is optional.

'4. Leading "0"'s are ignored.

'

'5. To set SYNC Out high during a data point, put a "p" or "P"

'BEFORE that data point. The "P" character may have whitespace around it

'if desired. SYNC Out is set low for all data points that do not

'have a "p" or "P" before them.

'

'Examples of integer numbers, SYNC Out is set high on point #3:

'0, 123 p -411 -320 +12, +2017, -2047

'------------------------------------------------------------------------------

'----------------------

Send data point as Integer -------------------------

SendInteger:

 

IF PointNumber = 1 THEN PRINT #1, "WI" ' Put header before 1st data point

IF PointNumber = 2 THEN PRINT #1, "p" ' Set SYNC Out for second point

' Convert the value in PointVal to an integer that ranges from -32767 to +32767

a = INT(PointVal * 2047) ' Convert -1.0, +1.0 val. to a -2047, +2047 val.

65

BK Precision 4071 User Manual Rev.2.2

Image 70
Contents User’s Manual Page Model User’s Manual +K Precision CorpTable of Contents Arbitrary waveform system Warranty informationRemote operation DC Operation OptionIntroduction Description Feature summary ModesSync out connector Installation and setupSIG Out connector External Modulation In connector External Trigger/Gating/FSK/BPSK input RS232 Interface connector External Reference Input / Ext Arb. Clock connectorExternal Arb Sync In / Out connector Line in connectorField arrow keys Mode keyOperating controls and 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 Changing frequency Operating mode selectionOperating guide 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 Input gain 000,000.00 Hz PEP level -10.0 dBm External AM ModeExternal AM Mode Parameters Input GainInt FM 1,000 Hz Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBm Internal FM ModeInternal FM Mode Parameters Peak Frequency DeviationExternal FM Mode Parameters External FM ModeExternal FM Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBm Peak Phase Deviation Internal PM ModeInternal PM Mode Parameters 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 timeMark Frequency Internal FSK ModeInternal FSK Mode Parameters Space FrequencyExt FSK Mark 1,000,000.00 Hz Space 2,000,000.00 Hz 10.0 dBm External FSK ModeExternal FSK Mode Parameters Ext FSK InputBurst Mode Trig Ton 10,000 mS 000,000.00 Hz Off 10.0 dBm Burst Mode IntroductionBurst frequency Int SSB 1,000 Hz Upper Sideband 000,000.00 Hz 10.0 dBm Internal SSB ModeInternal SSB Mode Parameters Upper/Lower Sideband selectionsExternal SSB Mode Parameters External SSB ModeExternal SSB Upper Sideband 000,000.00 Hz 10.0 dBm Dtmf Generation Mode Parameters Dtmf Generation ModeDtmf generation # Duration 200 mS Delay Level -10.0 dBm BackgroundDtmf Delay Dtmf DurationDtmf detection on Ext Mod input 3 # a Dtmf Detection ModeDtmf Detection Mode Parameters Dtmf detected digitsPower Level Power & Voltage Measurement ModePower & Voltage Measurement Mode Parameters 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 Parameters Data Modulation ModeUsing the Data Modulation Mode Baud RateDownloading Modulation Message Data Example MessageTriggering the Transmission Saving the MessageStart End 1,000,000.00 Hz 10.0 dBm Voltage Controlled Oscillator VCO ModeVCO Mode Parameters End FrequencyRemote Operation ConnectingChecking your connection with Hyper Terminal Remote Control Operation Remote Control Programming Rules× Ø Remote Control CommandsReset 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 F0-9 Move cursor to field 0 to Stp 31,500,000.00 HzLinear Trig Up Time 10,000 mS ? 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 GeneratorFunction Generator Switching ModesFeature Summary Pulse GeneratorPhase Arbitrary Waveform ModeInt Clock / Ext Clock / Lock Master Lock slave mode Continuous/Triggered modeWaveform Function Generator ModeFunction Gen Wave Pos Ramp Rep Freq 100,000 Hz 000 mV Repetition FrequencyPositive Only Pulse Generator ModeDuty Cycle Saving Arbitrary Waveforms Using WAVELOAD.EXEDownloading 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 Starting Address = Number of waveform points * Phase Offset More on Phase OffsetsPhase Resolution 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