B&K 4071 user manual Remote Control Operation, Remote Control Programming Rules

Page 46

You now have a terminal connection established with the 4071. Hit the “?” key. You should see a command menu in response.

If you do not see this menu, check the following:

On the 4071, press Mode then Offset and verify that the baud rate is set to 9600.

Verify that you are using the correct COM port.

Check your cabling.

If you see the command menu, you have verified that the 4071 is properly cabled to the computer, and that you are certain which COM port you are using.

NOTE: In general any terminal software capable of sending standard ASCII codes over RS-232 terminal could be used to control 4071 remotely, please refer to software provider for specific terminal OS/software support issues.

6.4 Remote Control Operation

Each key on the front panel keypad of the 4071 has an associated ASCII character which, when sent to the 4071 over the serial port, has the same effect as pressing that key on the keypad.

At power-up, the 4071 RS-232 baud rate is recalled from stored configuration 0. The factory default for this is 9600 baud. The remaining serial port parameters are always 1 start bit, 8 data bits, 1 stop bit, and no parity. The serial port on the controlling computer mu st be set to match these values.

6.5 Remote Control Programming Rules

The following guidelines should be observed when writing control software for the 4071:

All ASCII commands are case insensitive, i.e. upper and lower case letters are treated equally by the 4071.

When the 4071 has finished executing a command, it will return a command prompt, which is the ">"character. The control software should clear its receive buffer, issue a command, and then look for the ">" character to determine when the command has been executed. If a long string of commands is sent to the 4071, a separate ">" character will be returned for each command as it is executed.

All commands require less than 300 mS to execute except for the store or recall commands, which require several seconds to complete.

All white space (carriage returns, linefeeds, tabs, spaces and commas) between commands is ignored. Invalid commands (ASCII characters that are not listed in the command menu) are likewise ignored.

A command does not have to finish execution before another can be sent. All characters received by the 4071 are buffered up and executed in the order they were received. The programmer should allow sufficient time for the 4071 to execute each command and for the signal output to settle into the desired state.

If the 4071 is reporting data to the control program, it will place a colon (:) character before the data. This makes it easy for the control program to parse a returned string and extract the character(s) needed. Some examples of returned values are:

Example 1 DTMF Detection Mode detected digits:

DTMF: #

Example 2 Hardware/Software version, serial number (the "V" command):

BK Precision model: 4071

Software Version: c.2

Hardware Version: 1.0

S/N: F45E3412AC56

PM Checksum: 0017829BB903

When the operating mode of the 4071 is changed, all parameter values for the previous mode are retained in memory as long as power is applied to the unit. For example, if Sinewave mode with an output frequency of 5 MHz is changed to sweep mode, the Sinewave mode 5 MHz value will be saved before the mode is changed. Switching back to Sinewave mode will restore the 5 MHz value in the frequency field. If power is turned off, however, all parameters are reset to default values. To save all parameters for a mode, use the "Store/Recall" command.

41

BK Precision 4071 User Manual Rev.2.2

Image 46
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