17-22 SCPI Command Reference
Calculate subsystems
There are three Calculate Subsystems. The CALC1 Subsystem is used for math expressions,
CALC2 is used for limit tests, and CALC3 provides statistical data on readings stored in the
buffer. The commands in these subsystems are summarized in Table 17-1.
CALCulate[1] Configure and control math expressions
NOTE Percent deviation (%DEV) is included in the catalog as a built-in math expression
but is only available from the front panel. However, percent deviation can be added
as a user-defined math expression for remote operation. See “Program examples.”
Select (create) math expression name
:CATalog?
:CALCulate[1]:MATH[:EXPression]:CATalog? Query list of expression names
Description This query command is used to list the math expression names. This list
includes the built-in expression names as well as the names of expressions
defined by the user. The names for the built-in expressions are as follows:
“POWER”, “OFFCOMPOHM”, “VOLTCOEF”, “VARALPHA”, “%DEV”
Thus, the :CATalog? command will return the above names as well as the
names of any user-defined expressions. See :NAME to assign names to user-
defined expressions.
:NAME <name>
:CALCulate[1]:MATH[:EXPression]:NAME <name> Select math expression
Parameters <name> = “POWER” Instantaneous power equation
“OFFCOMPOHM” Offset compensated ohms equation
“VOLTCOEF” Resistor voltage coefficient equation
“VARALPHA” Varistor alpha equation
“user-name” Assigned name for user-defined
expression where the user name is made
up of ASCII characters (up to 10).
Query :NAME? Query selected math expression
Description This command can be used to select a math expression that already exists
(built-in or user-defined). Math expression names that already exist can be
listed using the :CATalog? command. The actual math expression can be
read using the :MATH? command. The built-in math expressions (except
POWER) require a two-point sweep in order to perform the calculation. The
“Program fragments” show how to configure the SourceMeter for these
math expressions.