Instructions

Chapter 2 Command System RIGOL
DG2000 Programming Guide 2-87
Return Format
The query returns the Square duty cycle in scientific notation, with 7 effective digits. For example,
4.500000E+01 (the Square duty cycle is 45%).
Example
:SOUR1:FUNC:SQU:DCYC 45 /*Sets the Square duty cycle of CH1 to 45%.*/
:SOUR1:FUNC:SQU:DCYC? /*Queries the Square duty cycle of CH1 and the query returns
4.500000E+01.*/
[:SOURce[<n>]]:FUNCtion:SQUare:PERiod
Syntax
[:SOURce[<n>]]:FUNCtion:SQUare:PERiod {<seconds>|MINimum|MAXimum}
[:SOURce[<n>]]:FUNCtion:SQUare:PERiod? [{MINimum|MAXimum}]
Description
Sets the Square period of the specified channel.
Queries the Square period of the specified channel.
Parameter
Name
Type
Range
Default
[<n>]
Discrete
1|2
1
<seconds>
Real
40 ns to 1 Ms
1 ms
Remarks
When [:SOURce[<n>]] or [<n>] is omitted, the system sets the related parameters of CH1 by default.
When the waveform type of the specified channel is changed (
[:SOURce[<n>]]:APPLy?), the
instrument still uses the period if the period is valid for the new waveform type; the instrument
displays a prompt message and sets the period to the period lower limit of the new waveform type
automatically if the period is invalid for the new waveform type.
Return Format
The query returns the Square period in scientific notation, with 7 effective digits. For example,
1.000000E+00 (the Square period is 1 s).
Example
:SOUR1:FUNC:SQU:PER 1 /*Sets the Square period of CH1 to 1 s.*/
:SOUR1:FUNC:SQU:PER? /*Queries the Square period of CH1 and the query returns 1.000000E+00.*/
:SOURce:HARMonic
Command List:
[:SOURce[<n>]]:HARMonic:AMPL
[:SOURce[<n>]]:HARMonic:ORDEr
[:SOURce[<n>]]:HARMonic:PHASe
[:SOURce[<n>]]:HARMonic[:STATe]
[:SOURce[<n>]]:HARMonic:TYPe
[:SOURce[<n>]]:HARMonic:USER