below).
If
the command is
a
query,
then
a question mark
('?')
must
immediately follow the end node without a space.
An example for a command is
:
':VOLT:OFFS
1
V7
This command consist of two command nodes
:
'VOLT7 and
'OFFS7
Command node
Command nodes are the short mnemonic words that are chained
together to form commands. Nodes can usually be given in a short
form or in a long form; the two forms are indicated by
upper/lower
case typing in the language reference.
The entry 'FREQuency7 in the language reference, for instance,
means that either 'FREQ7 or 'FREQUENCY' might be used but
nothing else, for instance 'FREQU' is not allowed.
Notice that case in the language reference, is for clarification only
-
the parser is NOT case sensitive, 'freq', 'FREQ' or 'FrEq7 are all the
same.
Optional node
An optional node is a node that, as the name implies, can be
supplied or not. Optional nodes are shown within square brackets in
the language reference.
Given the following command definition
:
('VOLTage7, 'POWer7 and
'CURRent7 are synonyms; they have exactly the same meaning.)
:VOLTage
I
POWer
I
CURRent
[:LEVel]
[:IMMediate]
[:AMPLitude] <numeric value>
:OFFSet <numeric value>
:UNIT
V
I
DBM
(
VRMS
the following commands are
all
equivalent
:
Although they are equivalent in their effect on the instrument
hardware, they are not equivalent for the parser (see current base
node).
Command Reference
5-3
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com