B&K 4070A Downloading arbitrary waveforms, Saving Arbitrary Waveforms, Using WAVELOAD.EXE

Page 57

7.7 Downloading arbitrary waveforms

To download Arbitrary Waveform data to the 4070A, you must connect the serial port on your computer to the RS-232 port on the back of the 4070A. For more detail information on this, refer to the chapter 6.2 . On the host computer, you may use the supplied DOS program WAVELOAD.EXE or you may send the data to the 4070A from your own application program. The next two sections give details on each. The 4070A does not need to be in Arbitrary Waveform mode to accept arbitrary waveform data. The waveform will not be generated, however, until the 4070A is switched to Arbitrary Waveform mode.

Saving Arbitrary Waveforms

Downloading a waveform overwrites the previous waveform in memory. Although mode parameters such as Clock Frequency, Level, etc. can be saved to 10 setup locations in nonvolatile memory, the arbitrary waveform is always saved to/recalled from a single location. The entire waveform array of up to 32,768 points is saved.

NOTE: Switching to Function Generator or Pulse Generator modes will overwrite any arbitrary waveform currently in memory. You may wish to save your waveform to nonvolatile memory before switching to Function Generator or Pulse Generator modes.

7.7.1 Using WAVELOAD.EXE

WAVELOAD.EXE is a DOS program that will send a waveform file to the 4070A through the serial port on your PC. The program can add the necessary two -character header before the waveform data.

WAVELOAD does not process or alter the data file in any way. It simply sends a two character header (described in the next section) and then the contents of the specified file to the chosen serial port.

It is important that the baud rate setting of the 4070A match the baud rate used by WAVELOAD.EXE. You may examine or change the baud rate of the 4070A by pressing the Mode key and then the Offset key. For more information changing the baud rate, please refer to section 5.20.

WAVELOAD.EXE may be invoked from the DOS prompt as follows:

C:>WAVELOAD /COMx /y /baud:z filename.ext

where

/COMx specifies the serial port, where x=1,2,3,4 for COM1,COM2,COM3 or COM4

/y specifies the format of the arbitrary waveform data: /F = Floating point

/T = Time & Value Floating point (.CSV, .PRN) /D = Digital

/H = Hexadecimal /I = Integer

/B = Binary

/N = Send no header. Use this switch if your data file already has the two character header.

/baud:z Specifies the baud rate. If this switch is omitted, the baud rate defaults to 9600. The allowable baud rates are:

300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200

filename.ext = The name of the file containing the arbitrary waveform data. You may have a full pathname here.

NOTE: To run WAVELOAD, you must specify the COM port, file format, and filename. If any or all of these are omitted from the command line, WAVELOAD will ask you for them.

EXAMPLE: Download the file SINE.FLT that is in floating point format to the 4070A using the COM1 serial port at 9600 baud:

WAVELOAD sine.flt /f /com1 /baud:9600

52

BK Precision 4070A User Manual Rev.2.2

Image 57
Contents User’s Manual Page +K Precision Corp Model 4070A User’s ManualTable of Contents Remote operation Warranty informationArbitrary waveform system DC Operation OptionIntroduction Description Modes Feature summaryInstallation and setup Sync out connectorSIG Out connector External Modulation In connector External Trigger/Gating/FSK/BPSK input External Arb Sync In / Out connector External Reference Input / Ext Arb. Clock connectorRS232 Interface connector Line in connectorOperating controls and keys Mode keyField arrow keys Recall / Store keyTrigger key Numeric keys 0 to 9,É, ê, è, ç keys One Touch Mode Keys Clear keyMHz/dBm, KHz/Vp-p/Sec, Hz/mVp-p/mS keys Operating guide Operating mode selectionChanging frequency Changing levelChanging values Modifying an existing valueEntering a new value Mode descriptions Basic Sinewave CW ModeSinewave Mode 000,000.00 Hz 10.0 dBm Internal AM Mode External AM Mode Parameters External AM ModeExternal AM Input gain 000,000.00 Hz PEP level -10.0 dBm Input GainInternal FM Mode Parameters Internal FM ModeInt FM 1,000 Hz Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBm Peak Frequency DeviationExternal FM Mode External FM Mode ParametersExternal FM Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBm Internal PM Mode Parameters Internal PM ModePeak Phase Deviation Int PM 1,000 Hz Pk dev 180 deg 000,000.00 Hz 10.0 dBmExternal PM Mode External PM Mode ParametersExternal PM Pk dev 180 deg 000,000.00 Hz 10.0 dBm Sweep Mode Sweep time Up / Down sweepInternal FSK Mode Parameters Internal FSK ModeMark Frequency Space FrequencyExternal FSK Mode Parameters External FSK ModeExt FSK Mark 1,000,000.00 Hz Space 2,000,000.00 Hz 10.0 dBm Ext FSK InputBurst Mode Introduction Burst Mode Trig Ton 10,000 mS 000,000.00 Hz Off 10.0 dBmBurst frequency Internal SSB Mode Parameters Internal SSB ModeInt SSB 1,000 Hz Upper Sideband 000,000.00 Hz 10.0 dBm Upper/Lower Sideband selectionsExternal SSB Mode External SSB Mode ParametersExternal SSB Upper Sideband 000,000.00 Hz +10.0 dBm Dtmf generation # Duration 200 mS Delay Level -10.0 dBm Dtmf Generation ModeDtmf Generation Mode Parameters BackgroundDtmf Duration Dtmf DelayDtmf Detection Mode Parameters Dtmf Detection ModeDtmf detection on Ext Mod input 3 # a Dtmf detected digitsPower & Voltage Measurement Mode Parameters Power & Voltage Measurement ModePower Level Voltage LevelArbitrary Mode Remote ModeOther mode Internal Bpsk Mode Internal Bpsk Mode ParametersInt Bpsk 1,000 Hz 000,000.00 Hz 10.0 dBm External Bpsk Mode External Bpsk Mode ParametersExternal Bpsk 000,000.00 Hz 10.0 dBm 10,000 Hz F2 Ton 000 mS Toff 10.0 Dualtone Generation ModeDualtone Examples Using the Data Modulation Mode Data Modulation ModeData Modulation Mode Parameters Baud RateExample Message Downloading Modulation Message DataSaving the Message Triggering the TransmissionVCO Mode Parameters Voltage Controlled Oscillator VCO ModeStart End 1,000,000.00 Hz 10.0 dBm End FrequencyConnecting Remote OperationChecking your connection with Hyper Terminal Remote Control Programming Rules Remote Control OperationReset 4070A to Sine wave mode Remote Control Commands× Ø Returns CK1.0 Enable, Disable front panel keys and rotary knob E1,0 Enable, Disable LCD echo to terminalReport hardware and software versions F0-9 Move cursor to field 0 to Linear Trig Up Time 10,000 mS? or H Print help menu Return a CExample Remote Control ExamplesArbitrary Waveform Mode Quick Start GuidePin 9-pin cable Pin 25 pin cable adapter Description of the Arbitrary Waveform Generator Introduction to the Arbitrary Waveform SystemFeature Summary Switching ModesFunction Generator Pulse GeneratorInt Clock / Ext Clock / Lock Master Lock slave mode Arbitrary Waveform ModePhase Continuous/Triggered modeFunction Gen Wave Pos Ramp Rep Freq 100,000 Hz 000 mV Function Generator ModeWaveform Repetition FrequencyPulse Generator Mode Positive OnlyDuty Cycle Downloading arbitrary waveforms Using WAVELOAD.EXESaving Arbitrary Waveforms Cwaveload /COMx /y /baudz filename.extUsing your own program Data Formats Floating Point FormatRules for Floating Point format Example #2 Time & Value Floating Point FormatDigital Format Integer Format Hexadecimal Format Rules for Hexadecimal formatExample The data value E468 is handled as follows Binary Format Rules for Binary formatExample Multiple Units Locking ArbGenerator Phase Resolution More on Phase OffsetsStarting Address = Number of waveform points * Phase Offset Waveform Size RestrictionsProgram Listing ARB.BAS Example Arb ProgramClose System Subroutines Return Print #1, a Send integer value to 4070A Return Return DC Operation Option Wiring DiagramOperating Modes 4070A SpecificationsRemote Software CDAppendix a Hardware SetupCLS CLS Print Print Subroutines END SUB Appendix B Television Remote Control ExampleCLS Make sure a 4070A is attached to the serial port Print Limited Two-Year Warranty Service Information Savi Ranch Pkwy Yorba Linda, CA 92887 USA TEL