Remote Control
Copyright © Itech Electronic Co., Ltd.
2
If "curr" is explicitly included in the second command, it is semantically wrong.
Since combining it with the head path will become "
CURR:CURR:PROT:STAT
OFF
", resulting in wrong command.
Movement in the subsystem
In order to combine commands in different subsystems, it is required to set the
head path of message as a null string. If a command is started by a colon, the
operation will discard all current head paths. For example, you may apply the
following root specification to remove the output protection and inspect the
status of operation status register in a message.
PROTection:CLEAr;:STATus:OPERation:CONDition?
The following command indicates how to combine commands from different
subsystems as if in the same subsystem:
POWer:LEVel 200;PROTection 28; :CURRent:LEVel 3;PROTection:STATe
ON
Note to use the optional head
LEVel
to maintain path in the voltage and current
subsystems and use the root specification to move among subsystems.
Including common command
You can combine the common command and subsystem command in the same
message and consider the common command as a message unit, and separate
it by a semicolon (separator of message unit). Common commands will not
influence the head path; you can insert them into any place of the message.
VOLTage:TRIGgered 17.5;:INITialize;*TRG
OUTPut OFF;*RCL 2;OUTPut ON
IT872X-3X SCPI
Communication Protocol
17
Case sensitivity
Common commands and SCPI commands are case insensitive: you may use
upper or lower case or both, such as:
*RST = *rst
:DATA? = :data?
:SYSTem:PRESet = :system:preset
Long or short format
A SCPI command word can be sent in short or long format. The command
subsystem table in the Chapter 5 provides long-format words.
However, short
command words are expressed in uppercase characters:
:SYSTem:PRESet
long format
:SYST:PRES
short format
:SYSTem:PRES combination of
long and short formats
Note that every command word must only be long or short format, and the long
and short command words cannot be interleaved.
For example:
:SYSTe:PRESe
is an illegal command word which will cause an error.
This command will not be
executed.
Check
Observe the following query alert:
⚫
To set a proper number of variables for the returned data, for example, if
you are reading a measurement sequence, you must provide fractal
dimension to the sequence according to measurement number stored in
the measurement cache.
⚫
Read back all query results before sending any command to the instrument.