
Agilent B2900 SCPI Command Reference, Edition 2 4- 17
Subsystem Commands
:CALCulate:MATH[:EXPRession][:DEFine]
Resources used in the expressions
The following resources can be used in user-defined math expressions.
• Reserved variables
The variables listed in Table 4-1 are reserved for reading the channel output or
measurement data.
Scalar variable is used for spot measurement data.
Vector (array) variable is used for sweep measurement data.
• Math operators
The following operators are available.
• Arithmetic operators: +, -, *, /, ^, see Table 4-2
• Elementary functions: ln, log, sin, cos, tan, exp
The functions log and ln perform the operation after calculating the absolute
value. So if a negative value is specified, they do not result in an error, but
calculate as if a positive value was specified. For example, log(-10) results in
log(10)=1.
• Numeric value
Decimal (0 to 4294967294, 4294967295 indicates -1), binary (32 bit, 0 to
0b11111111111111111111111111111111), or hexadecimal (0 to 0xFFFFFFFF).
Table 4-1 Reserved Variables
Reserved variable
a
a. The numeric suffix [c] is effective for specifying the channel. For exam-
ple, use CURR2 to read the current spot measurement data for channel
2. See
“Numeric Suffix” on page 1-8.
Description
Scalar Vector
SOUR[c] SOUR[c][] Source output setting data
VOLT[c] VOLT[c][] Voltage measurement data
CURR[c] CURR[c][] Current measurement data
RES[c] RES[c][] Resistance measurement data
TIME[c] TIME[c][] Time (timestamp) data
Comments to this Manuals