MDO3000 Programmer Manual.pdf - 第444页
Commands Listed in A lphabetical Order MATH:DEFINE "I NTG(1+CH1) + SINE(CH 1)*(VAR1+CH2)*CH 3 - CAREA(CH4)" Some examples of SPE CTR UM math expressions are as follow s: MATH:DEFIN E "RF_NOR MAL - RF_ AVE …

Commands Listed in Alphabetical Order
Table 2-56: Math expression elements (cont.)
Element Description Example
+,-,*,/
Addition, subtraction, multiplication, and
division operators
<
“Less than” operator
:MATH:DEFINE "(CH1 < CH2)"
>
“Greater than” operator
:MATH:DEFINE "(CH1 > CH2)"
<=
“Less than or equal to” operator
:MATH:DEFINE "(CH1 <=
CH2)"
>=
“Greater than or equal to” operator
:MATH:DEFINE "(CH1 >=
CH2)"
!= “Not equal to” operator
:MATH:DEFINE "(CH1 !=
CH2)"
==
“Equal to” operator
:MATH:DEFINE "CH1== CH2"
|| Logical “OR” operator
:MATH:DEFINE "(CH1 != CH2)
|| (CH3 == CH4)"
&& Logical “AND” of expressions
:MATH:
DEFINE "(CH1 != C H2)
&& (CH3 == CH4)"
!( “NOT” function, which changes
non-zero values to zero, and zero
value
sto1.
:MATH:DEFINE "(CH2- CH1) *
!(CH1 >= CH2)"
+-, 0-9, ., 0-9, E , +-, 0-9
Spec
ifies a numeric value in (optional)
scientific notation (for example:
2.34E-9).
:MATH:DEFINE "1E2"
Examples
Some examples of DUAL math expressions are as follows:
MATH1:DEFINE "CH1+CH2" adds the Ch 1 waveform and Ch 2 waveform,
storing the results in Math 1.
MATH:DEFINE? might return :MATH1:DEFINE "CH2*REF2" as the expression
t
hat defines Math 1.
Some examples of
FFT math expressions are as follows:
MATH:DEFINE "FFT(CH1)"
MATH:DEFINE "FFT(REF1)"
MATH:DEFINE "FFT(RF_NOR MAL)"
Some examples of ADV anced math expressions are as follows:
MATH:DEFINE "AMPLITUDE( CH1) * ( VAR1 + CH 2) - CH3"
MATH:DEFINE "SINE(CH1)* (VAR1+CH2)*CH3 - CAREA(C H4)"
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-413

Commands Listed in Alphabetical Order
MATH:DEFINE "I
NTG(1+CH1) + SINE(CH1)*(VAR1+CH2)*CH 3 -
CAREA(CH4)"
Some examples of SPE CTRUM math expressions are as follows:
MATH:DEFIN
E "RF_NOR MAL - RF_ AVERAGE"
MATH:DEFINE "RF_NORMAL * RF_AVERAGE"
MATH[1]:HORizontal:POSition
This command specifies the math horizontal display position for FFT or (non-live)
math reference waveforms.
Group
Math
Syntax
MATH[1]:HORizontal:POSition <NR3>
MATH[1]:HORizontal:POSition?
Arguments
<NR3> is a floating point number that specifies the % of the math waveform that
precedes center screen. It can vary from 0.0 to 100.0.
Examples
MATH:HORIZONTAL:POSITION 10 sets the horizontal position to 10% pretrigger
MATH[1]:HORizontal:SCAle
This command specifies the math horizontal display scale for FFT or for dual
math waveforms that have source waveforms that are reference waveforms. The
horizontal scale of a dual math waveform with a channel source waveform is set
through the command.
Group
Math
Syntax
MATH[1]:HORizontal:SCAle <NR3>
MATH[1]:HORizontal:SCAle?
Arguments
<NR3> is a floating point number that specifies the math horizontal scale, in
seconds.
2-414 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual

Commands Listed in Alphabetical Order
Examples
MATH:? might re
turn
MATH: 2.0 E-4 indicating that the math horizontal scale
is 200 μ
MATH[1]:HORizontal:UNIts
Returns the math waveform horizontal measurement unit value.
Group
Math
Syntax
MATH[1]:HORizontal:UNIts?
Examples
MATH:HORIZONTAL:UNITS? might return M ATH:HORIZONTAL:UNITS "?"
indicating that the math horizontal unit label for unknown values is the default
question mark unit.
MATH[1]:LABel
Sets or queries the waveform label for the math waveform.
Group
Math
Syntax
MATH[1]:LABel <QString>
MATH[1]:LABel?
Arguments
<QString> is the quoted string used as the label for the math waveform.
Examples
MATH:LABEL “Output” sets the label for the math waveform to Output.
MATH:LABEL? might return MATH:LABEL "Sum of channel 1 and
channel 2"
indicating the current label for the math waveform.
MATH[1]:SPECTral:MAG
This command specifies the units of the Spectral Magnification function in the
math string.
Group
Math
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-415