Instructions
Chapter 2 Command System  RIGOL 
MSO5000-E Programming Guide  2-101  
Return 
Format 
The query returns an integer ranging from 5 to 10000. 
Example 
:MATH1:DISTance 20/*Sets the smoothing window width of differential operation to 20.*/ 
:MATH1:DISTance? /*The query returns 20.*/ 
:MATH<n>:THReshold1 
Syntax  :MATH<n>:THReshold1 <thre> 
:MATH<n>:THReshold1? 
Description  Sets or queries threshold level of Analog Channel 1 in the logic operation. The default unit 
is V. 
Parameter 
Name 
Type 
Range 
Default 
<n> 
Discrete 
{1|2|3|4} 
—— 
<thre>  Real 
(-4 × VerticalScale - VerticalOffset) to  
(4 × VerticalScale - VerticalOffset) 
0 V 
Description    This command is only available in the following conditions: logic operations (A&&B, 
A||B, A^B, and !A). 
  VerticalScale indicates the vertical scale of Analog Channel 1. 
VerticalOffset indicates the vertical offset of Analog Channel 1. 
The step value is VerticalScale/10. 
Return 
Format 
The query returns the threshold level of Analog Channel 1 in scientific notation. 
Example 
:MATH1:THReshold1 0.8     /*Sets the threshold level of Analog Channel 1 in logic 
operation to 800 mV.*/ 
:MATH1:THReshold1? /*The query returns 8.000000E-1.*/ 
:MATH<n>:THReshold2 
Syntax  :MATH<n>:THReshold2 <thre> 
:MATH<n>:THReshold2? 
Description  Sets or queries threshold level of Analog Channel 2 in the logic operation. The default unit 
is V. 
Parameter 
Name  Type  Range  Default 
<n> 
Discrete 
{1|2|3|4} 
—— 
<thre>  Real 
(-4 × VerticalScale - VerticalOffset) to  
(4 × VerticalScale - VerticalOffset) 
0 V 
Description    This command is only available in the following conditions: logic operations (A&&B, 
A||B, A^B, and !A). 
  VerticalScale indicates the vertical scale of Analog Channel 2. 
VerticalOffset indicates the vertical offset of Analog Channel 2. 
The step value is VerticalScale/10. 
Return 
Format 
The query returns the threshold level of Analog Channel 2 in scientific notation. 










