Instructions
RIGOL  Chapter 2 Command System 
2-92    MSO5000 Programming Guide 
:MATH<n>:SOURce1 
Syntax 
:MATH<n>:SOURce1 <src> 
:MATH<n>:SOURce1? 
Description 
Sets or queries the source or Source A of arithmetic operation and function operation. 
Parameter 
Name 
Type 
Range 
Default 
<n> 
Discrete 
{1|2|3|4} 
—— 
<src> 
Discrete 
{CHANnel1|CHANnel2|CHANnel3|CHANnel4} 
CHANnel1 
Remarks 
  For arithmetic operation, this command is used to set Source A. 
  For function operation, use this command only to set the source. 
Return 
Format 
The query returns CHAN1, CHAN2, CHAN3, or CHAN4. 
Example 
:MATH1:SOURce1 CHANnel3      /*Sets Source A of the arithmetic operation to CH3.*/ 
:MATH1:SOURce1?                      /*The query returns CHAN3.*/ 
:MATH<n>:SOURce2 
Syntax 
:MATH<n>:SOURce2 <src> 
:MATH<n>:SOURce2? 
Description 
Sets or queries Source B of arithmetic operation. 
Parameter 
Name 
Type 
Range 
Default 
<n> 
Discrete 
{1|2|3|4} 
—— 
<src> 
Discrete 
{CHANnel1|CHANnel2|CHANnel3|CHANnel4} 
CHANnel1 
Remarks 
This command is only available for arithmetic operation (containing two sources). 
Return 
Format 
The query returns CHAN1, CHAN2, CHAN3, or CHAN4. 
Example 
:MATH1:SOURce2 CHANnel3      /*Sets Source B of the arithmetic operation to CH3.*/ 
:MATH1:SOURce2?                      /*The query returns CHAN3.*/ 
:MATH<n>:LSOUrce1 
Syntax 
:MATH<n>:LSOUrce1 <src> 
:MATH<n>:LSOUrce1? 
Description 
Sets or queries Source A of the logic operation. 
Parameter 
Name 
Type 
Range 
Default 
<n> 
Discrete 
{1|2|3|4} 
—— 
<src> 
Discrete 
{D0|D1|D2|D3|D4|D5|D6|D7|D8| 
D9|D10|D11|D12|D13|D14|D15| 
CHANnel1|CHANnel2|CHANnel3|CHANnel4} 
CHANnel1 
Remarks 
The logic operations include A&&B, A||B, A^B, and !A. 
Return 
Format 
The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, 
D15, CHAN1, CHAN2, CHAN3, or CHAN4. 










