User manual

Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-47
Example
:COUNter:SOURce CHANnel2 /*Sets the source of the frequency
counter to CH2.*/
:COUNter:SOURce? /*The query returns CHAN2.*/
:COUNter:MODE
Syntax
:COUNter:MODE <mode>
:COUNter:MODE?
Description
Sets or queries the mode of the frequency counter.
Parameter
Name
Type
Range
Default
<mode>
Discrete
{FREQuency|PERiod|TOTalize}
FREQuency
Return
Format
The query returns FREQ, PER, or TOT.
Example
:COUNter:MODE PERiod /*Sets the mode of the frequency counter to
PERiod.*/
:COUNter:MODE? /*The query returns PER.*/
:COUNter:NDIGits
Syntax
:COUNter:NDIGits <val>
:COUNter:NDIGits?
Description
Sets or queries the resolution of the frequency counter.
Parameter
Name
Type
Range
Default
<val>
Integer
3-6
5
Remarks
The resolution setting is only available for "Period" and "Frequency", and
unavailable for "Totalize".
Return
Format
The query returns an integer ranging from 3 to 6.
Example
:COUNter:NDIGits 4 /*Sets the resolution of the frequency
counter to 4.*/
:COUNter:NDIGits? /*The query returns 4.*/
:COUNter:TOTalize:ENABle
Syntax
:COUNter:TOTalize:ENABle <bool>
:COUNter:TOTalize:ENABle?
Description
Enables or disables the statistical function of the frequency counter; or
queries the on/off status of the statistical function of the frequency counter.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Remarks
Not available for "Period" and "Frequency".
Return
Format
The query returns 1 or 0.