167
────────────────────────────────────────────────────
11.3 Details of the RS-232C Interface
────────────────────────────────────────────────────
1.3.7 Abbreviation of Compound Commands
NOTE
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 delimiter is detected.
・Messages of standard command form can be executed without relation to the
current path.
However, in order to prevent confusion with abbreviated forms and mistakes
in operation, it is recommended practice always to prefix ":" to headers.
・With the 3166, there are nine possible current paths:
":CURRent:"
":DEMand:"
":DISPlay:"
":INTEgrate:"
":MEASure:"
":NORMal:"
":SCALe:"
":TRANsmit:"
":VOLTage:"