96
────────────────────────────────────────────────────
8.3 Interface Outline
────────────────────────────────────────────────────
8.3.8 Abbreviation of Compound Commands
8.3.9 Output Queue
When several compound commands have a common head portion, for
example :SCAL:PT and :SCAL:CT, then, when and only when writing them
directly following on from one another, this common portion (:SCAL: in this
example) can be omitted from each command. This common portion is
called "the current path", by analogy with the general concept of the current
directory in the directory structure of UNIX or MS-DOS, and until it is
cleared the analysis of following commands is performed by deeming them
to be preceded by the current path which has been curtailed in the interests
of brevity. This manner of using the current path is shown in the following
example:
Normal expression
":SCALe:CT_2;:SCALe:PT_10;:SCALe:CT?"
Abbreviated expression:
" :SCALe: CT_2;PT_10;CT?"
This becomes the current path, and can be curtailed
from the following commands.
The current path is cleared when the power is turned on, when a system
reset is performed by key input, when a colon ":" appears at the start of a
command, and when a message terminator is detected.
Messages of standard command form can be executed without relation to the current
path. Further, they have no effect upon the current path.
It is not necessary to prefix a colon ":" at the start of headers of simple commands
and compound commands. However, in order to prevent confusion with
abbreviated forms and mistakes in operation, it is recommended practice always to
prefix ":" to headers.
With the 3332, there are ten possible current paths:
":VOLTage:" ":CURRent:"
":SCALe:" ":TRANsmit:"
":FREQuency:" ":INTEGrate:"
":DATAout:" ":RS232c:"
":COMParator1:" ":COMParator2:"
Response messages accumulate in the output queue and are read out as data
and cleared by the controller. The output queue is also cleared in the
following circumstances:
・When a device clear is issued.
・When the power is turned off and turned on again.
・When the unit is reset by a key press.
・When a query error is generated.
The 3332 has an output queue of 1000 bytes capacity. If the response
messages overflow this limit of 1000 bytes, a query error is generated, and
the output queue is cleared. Further, if a new message is received while the
output queue still contains data, the output queue is cleared, and a query
error is generated.