Chapter 4 Remote Interface Reference
An Introduction to the SCPI Language
105
4
SCPI Parameter Types
The SCPI language defines several different data formats to be used in program
messages and respons e messages.
Numeric Parameters
Comm ands that require numeric parameters will
accept all common ly used decimal representations of numbers including
optional si gns, decimal poi nts, and scientific notation. Special values for
numeric parameters like
MINimum
,
MAXimum
, and
DEFault
are also accepted.
You can also send engineering uni t suffixes (V, A or SEC) with numer ic
parameters. If only specific numeric values are accepted, the power supply will
automatically round the input numeric parameters. The following command
uses a numeric parameter:
CURR {<current>|MIN|MAX|UP|DOWN}
Discrete Parameters
Discrete parameters are used to program settings that
have a limited number of values (like
BUS
,
IMM
). Query responses will alway s
return the short form in all upper-case letters. The following command uses
discrete parameters:
TRIG:SOUR {BUS|IMM}
Boolean Parameters
Boolean param eters represent a single binary
condition that is either true or false. For a false condition, the power supply
will accept ‘‘OFF’’ or ‘‘ 0 ’’. For a true condition, the power supply will accept
‘‘ON’’ or ‘‘ 1 ’’. When you query a boolean setting, the power supply will alway s
return ‘‘ 0 ’’ or ‘ ‘ 1 ’’. The followi ng comm and uses a boolean parameter:
DISP {OFF|ON}
String Parameters
String parameters can cont ain virtually any set of ASCII
characters. A string mus t begin and end with matching quotes; either wi th a
single quote or with a double quote. Y ou can inc lude the quote delimiter as part
of the string by typing it twice without any characters in between. The
following command u ses a string parameter:
DISP:TEXT <quoted string>