EasyManua.ls Logo

Keysight Technologies B2961A - Page 143

Keysight Technologies B2961A
364 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Keysight B2961A/B2962A SCPI Command Reference, Edition 6 4- 5
Subsystem Commands
CALCulate Subsystem
Parameter definition Definition of a math expression. Up to 256 ASCII characters.
Parameter data type is Expr. The expression must be enclosed
by parentheses. For example, definition=(SOUR2/CURR2).
Maximum of 32 math expressions can be defined including the
predefined math expressions.
Query response definition <newline>
definition returns the definition of the math expression currently selected. For
example, definition returns (SOUR2/CURR2). Response data type is Expr.
Example :CALC:MATH:EXPR:NAME “Expression_for_ch1”
:CALC:MATH:EXPR:DEF
((CURR[1]-CURR[0])*(RES[1]-RES[0]))
:CALC:MATH?
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 of Contents

Other manuals for Keysight Technologies B2961A

Related product manuals