
1-38 Programming Guide
Preparing for Use ESG Family Signal Generators
Getting Started with SCPI
Each parameter type has one or more corresponding response data types. For example, a
setting that you program using a numeric parameter returns either real or integer
response data when queried. Whether real or integer response data is returned depends on
the instrument used. However, precise talking requires that the response data type be
clearly defined for a particular instrument and query. Chapter 2 contains information
about data types for individual commands.
Parameter Types
Numeric Parameters Numeric parameters are used in both subsystem commands and
common commands. Numeric parameters accept all commonly used decimal
representations of numbers including optional signs, decimal points, and scientific
notation.
If an instrument setting programmed with a numeric parameter can only assume a finite
number of values, the instrument automatically rounds the parameter. For example, if an
instrument has a programmable output impedance of 50 or 75 ohms, and you specified
76.1 for output impedance, the value is rounded to 75. If the instrument setting can only
assume integer values, it automatically rounds the value to an integer. For example
sending *ESE 10.123 is the same as sending *ESE 10.
Examples of numeric parameters:
Extended Numeric Parameters Most subsystems use extended numeric parameters to
specify physical quantities. Extended numeric parameters accept all numeric parameter
values and other special values as well. All extended numeric parameters accept MAXimum
and MINimum as values. Other special values, such as UP and DOWN may be available as
documented in Chapter 2. Notice that MINimum and MAXimum can be used to set or query
values. The query forms are useful for determining the range of values allowed for a given
parameter.
In some instruments, extended numeric parameters accept engineering unit suffixes as
part of the parameter value.
Notice that extended numeric parameters are not used for common commands or STATus
subsystem commands.
100 no decimal point required
100. fractional digits optional
−1.23 leading signs allowed
4.56e<space>3 space allowed after e in exponential
−7.89E−01 use either E or e in exponential
+256 leading + allowed
.5 digits left of decimal point optional
Comentários a estes Manuais