User manual

Chapter 2 Command System RIGOL
MSO5000 Programming Guide 2-105
Remarks
Only the currently enabled channels can be selected.
Return
Format
The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14,
D15, CHAN1, CHAN2, CHAN3, CHAN4, MATH1, MATH2, MATH3, or MATH4.
Example
:MEASure:SOURce CHANnel2
/*Sets the channel source for the parameter to CHANnel2.*/
:MEASure:SOURce? /*The query returns CHAN2.*/
:MEASure:COUNter:ENABle
Syntax
:MEASure:COUNter:ENABle <bool>
:MEASure:COUNter:ENABle?
Description
Enables or disables the frequency counter; or queries the on/off status of the
frequency counter.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return
Format
The query returns 1 or 0.
Example
:MEASure:COUNter:ENABle ON /*Enables the frequency counter.*/
:MEASure:COUNter:ENABle? /*The query returns 1.*/
:MEASure:COUNter:SOURce
Syntax
:MEASure:COUNter:SOURce <source>
:MEASure:COUNter:SOURce?
Description
Sets or queries the measurement source of the frequency counter.
Parameter
Name
Type
Range
Default
<source>
Discrete
{D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D
11|D12|D13|D14|D15|CHANnel1|CHANnel2
|CHANnel3|CHANnel4}
CHANnel1
Remarks
Only the currently enabled channels can be selected.
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.
Example
:MEASure:COUNter:SOURce CHANnel2 /*Sets the measurement source for the
frequency counter to CHANnel2.*/
:MEASure:COUNter:SOURce? /*The query returns CHAN2.*/
:MEASure:COUNter:VALue?
Syntax
:MEASure:COUNter:VALue?
Description
Queries the measurement results of the frequency counter. The default unit is Hz.
Return
Format
The query returns the current measurement value in scientific notation. If the frequency
counter function is currently disabled, the query returns 0.
Example
:MEASure:COUNter:VALue? /*The query returns 1000.*/