SCPI Data Types
These paragraphs explain the data types available for parameters and
response data. They list the types available and present examples for
eachtype. SCPI denes dierent data formats for use in program
messages and response messages. It does this to accommo date
the principle of forgiving listening and precise talking. Recall
that forgiving listening means instruments are exible, accepting
commands and parameters in various formats. Precise talking means
an instrument always resp onds to a particular query in a predened,
rigid format. Parameter data types are designed to b e exible in
the spirit of forgiving listening. Conversely, response data types are
dened to meet the requirements of precise talking.
Table 1-3. SCPI Data Types
Parameter Types Response Data Types
Numeric Real or Integer
Extended Numeric Integer
Discrete Discrete
Boolean Numeric Bo olean
String String
Blo ck Denite Length Blo ck
Indenite Length Blo ck
Non-decimal Numeric Hexadecimal
Octal
Binary
Notice that each parameter type has one or more corresp onding
response data types. For example, a setting that you program using
anumeric parameter returns either real or integer resp onse data
when queried. Whether real or integer response data is returned
depends on the instrument used. However, precise talking requires
that the resp onse data type b e clearly dened for a particular
instrument and query. The instrument command dictionary generally
contains information about data types for individual commands. The
following paragraphs explain each parameter and response data type
in more detail.
Parameter Types
Numeric Parameters.
Numeric parameters are used in b oth
subsystem commands and common commands. Numeric parameters
accept all commonly used decimal representations of numbers
including optional signs, decimal p oints, and scientic notation.
If an instrument setting programmed with a numeric parameter can
only assume a nite number of values, the instrument automatically
Getting Started Programming 1-83