Command syntax
Notice in the preceding examples that there is no colon character at the beginning of the com-
mands. A leading colon instructs the Model 2002 to interpret the command starting at the root
(highest level) of the command tree. Since the Model 2002 also starts at the root each time you
send it a new command, the leading colon is not needed (although the instrument will accept it
if you send it).
You can send multiple commands in a single message. You separate the commands with a
semicolon character. When the Model 2002 encounters a command following a semicolon, it at-
tempts to interpret the command starting at the level of the previous command, unless you pre-
cede the second command with a colon. For example, either of the following comand strings
programs the Model 2002 to the 20VDC range and uses 5VDC as a relative value (with the REF-
erence commands):
volt:dc:rang 20;ref 5;ref:stat on
volt:dc:rang 20;:volt:dc:ref 5;:volt:dc:ref:stat on
The two command strings are treated identically by the Model 2002. In the first string when
the instrument encounter
";ref 5"
, it notices the following:
•
It is not the first command in the string.
•
There is no leading colon on the command.
•
The previous command was at the
VOLTage:DC
level.
Therefore, it interprets the command as if it were at the
VOLTage:DC
level.
3-10
IEEE-488 Bus Operation
Содержание 2002
Страница 1: ...Model 2002Multimeter Getting Started Manual A G R E A T E R M E A S U R E O F C O N F I D E N C E...
Страница 8: ...1 FrontPanel Operation...
Страница 25: ...1 18 Front Panel Operation...
Страница 26: ...2 Measurement Options...
Страница 55: ...3 IEEE 488Bus Operation...
Страница 84: ...4 Specsand Accessories...