Chapter 4 Remote Interface Reference
An Introduction to the SCPI Language
104
Querying Parameter Settings
You can q uery the value of most parameters by adding a
question mark
(?) to
the comm and. For example, the following command sets the output current
to 5 amps:
āā
CURR 5
āā
You can query the value by executing:
āā
CURR?
āā
You can also query the minimum or maximum value allowed with the present
function as follows:
āā
CURR? MAX
āā
āā
CURR? MIN
āā
Caution If you send two query commands without reading the response from the first, and then
attempt to read the second response, you may receive some data from the first response
followed by the complete second response. To avoid this, do not send a query
command without reading the response. When you cannot avoid this situation, send
a device clear before sending the second query command.
SCPI Command Terminators
A command string sent to the power supply
must
terminate with a <
new li ne
>
character. The IEE E - 488 EOI (end-o r-i denti fy) message is interpr eted as a
<
new line
> character and can be used to terminate a command string in place
of a <
new line
> character. A <
carri age re turn
> followed by a <
new li ne
> is
also accepted. Command string termination will alway s reset the current SCPI
command path to the root level. The <
new li ne
> character has the A SC II
decim al code of 10.
IEEE-488.2 Common Commands
The IEEE-488.2 standard defines a set of comm on comm ands that perform
functions like reset, self-test, and status operations. Common comm ands
always begin with an asterisk ( * ), are four to five characters in length, and
may include one or more parameters. The comm and keyword is separated
from the first parameter by a
blank spac e
. Use a
semicolon
( ; ) to separate
multi ple comm ands as shown below :
āā
*RST; *CLS; *ESE 32; *OPC?
ā