GPIB Commands
5-5
In addition, to give two commands at the same time (ex. NAME and CATalog), use the
following method to simplify the command.
:CALCulate1:MATH:EXPRession:NAME;CATalog
It is same as the following two commands below, but simpler.
:CALCulate1:MATH:EXPRession:NAME
:CALCulate1:MATH:EXPRession:CATalog
Colon (:) is required to separate the command between levels and the first colon at the
beginning of each command line indicates the Root. Also two commands need to be
separated by semicolon (;) in one command line. For example:
:CALCulate1:MATH:EXPRession:NAME;:SOURce:FREQuncy:CW
It means the same as the following two command lines.
:CALCulate1:MATH:EXPRession:NAME
:SOURce:FREQuncy:CW
The colon after a semicolon indicates the Root. If the command is available for setting and
query, add a parameter to the command when setting it and add a question mark “?” to it
when query is required.
For instance to set the frequency to 1KHz, send :SOURce : FREQuency [:CW] 1KHz , and if
query is needed, send :SOURce : FREQuency [:CW] ?. The lower case letter and the text
in [ ] in the command indicates they can be omitted, for example:
:SOURce:FREQuency [:CW]; can be written to
:SOUR:FREQ;
5.3.2 Command Syntax
(1) The Syntax of common use commands
The GPIB commands for 11021/11021-L are divided into general commands (as listed
above) and common use commands. The general commands are in tree structure,
while the common use commands have no such structure and can be given in the
following format no matter which level it is on:
*RST
(2) Either upper or lower case is ok for the letters.
(3) A star “*” has to be the leading character of each command.
(4) End of Character
There three types of end of character [CARRIAGE RETURN](0Dh), [NEW LINE](0Ah)
and [CARRIAGE RETURN](0Dh) + [NEW LINE](0Ah).