
Chapter 1 35
Using HP-IB
Getting Started
• Guideline #3.
The syntax diagrams in the HP-IB Syntax Reference Guide show
where single quotes are needed and where spaces are needed.
Example 1-2 Example
OUTPUT 714;"DISP<space>AFAN"
OUTPUT 714;"AFAN:DEMP<space>’Off’"
Improper use of single quotes and spaces will cause,
HP-IB Error:
−
103 Invalid Separator
• Guideline #4.
When making settings to fields that can be turned OFF with the
STATe ON/OFF command (refer to the HP-IB Syntax Reference
Guide), make sure the STATe is ON if the program uses that field.
Note that if the STATe is OFF, just setting a numeric value in the
field will not change the STATe to ON. This is different than
front-panel operation whereby the process of selecting the field
and entering a value automatically sets the STATe to ON.
Programmatically, fields must be explicitly set to the ON state if
they are in the OFF state.
For example, the following command line would set a new AMPS
ENCoder SAT tone deviation and then turn on the SAT tone (note
the use of the; to back up one level in the command hierarchy so
that more than one command can be executed in a single line):
Example 1-3 Example
OUTPUT 714;"ENC:AMPS:SAT:FM 2.1 KHZ;FM:STAT ON"
To just turn on the SAT tone without changing the current setting
the following commands would be used:
Example 1-4 Example
OUTPUT 714;"ENC:AMPS:SAT:FM:STAT ON"
Comentários a estes Manuais