Instructions
RIGOL Chapter 2 Command Systems for GPSA and RTSA Modes
2-38 RSA3000E Programming Guide
Example
The following command sets the trace number of the trace where the marker1 stays in to 100.
:CALCulate:MARKer1:Z:POSition 100
The following query returns 100.
:CALCulate:MARKer1:Z:POSition?
:CALCulate:MATH
Syntax
:CALCulate:MATH
<trace_destination>,<function_math>,<trace1_operation>,<trace2_operation>,<rel_offset>,<rel_refer
ence>
:CALCulate:MATH? TRACE1|TRACE2|TRACE3|TRACE4|TRACE5|TRACE6
Description
Sets mathematical operations between traces and, in some cases, user-defined offsets.
Queries the math operation function of the specified trace.
Parameter
Name
Type
Range
Default
<trace_destination> Keyword
TRACE1|TRACE2|TRACE3|TRACE4|TRACE
5|TRACE6
——
<function_math> Keyword
PDIFference|PSUM|LOFFset|LMOFFset|LD
IFference|OFF
OFF
<trace1_operation> Keyword
TRACE1|TRACE2|TRACE3|TRACE4|TRACE
5|TRACE6
TRACE5
<trace2_operation> Keyword
TRACE1|TRACE2|TRACE3|TRACE4|TRACE
5|TRACE6
TRACE6
<rel_offset>
Consecutive Real
Number
-100 dB to 100 dB 0 dB
<rel_reference>
Consecutive Real
Number
-170 dBm to 30 dBm 0 dBm
Remarks
PDIFference: indicates the power difference between Operand 1 and Operand 2.
PSUM: indicates the power sum between Operand 1 and Operand 2.
LOFFset: indicates the sum between Operand 1 and the offset parameter <rel_offset>.
LMOFFset: indicates the difference between Operand 1 and the offset parameter <rel_offset>.
LDIFference: indicates that Operand 1 (Op1) minus Operand 2 (Op2), and then plus the reference
parameter value <rel_reference>.
OFF: disables the operation function.
<rel_offset> indicates the log offset, and its unit is dB; <rel_reference> indicates the log reference, and its
unit is dBm.
For certain operation, if some parameters are irrelevant in the operation, you can replace these parameters
with ",," in the command. The returned parameters are separated by commas. The returned results of the
irrelevant parameters are undefined. The empty fields are replaced by ",,".
Return Format
The query returns the operation function of the specified trace, namely, PDIF, PSUM, LOFF, LMOFF, LDIF, or
OFF.
Example
The following command sets Trace 1 to the power difference math operation, and sets Operand Trace 1 to
Trace 4 and Operand Trace 2 to Trace 5.