RIGOL
DG900 Programming Guide
2-85
Return Format
The query returns a string. For example, SQU.
Example
:SOUR1:FUNC SQU /*Sets the waveform type of CH1 to Square.*/
:SOUR1:FUNC? /*Queries the waveform type of CH1 and the query returns SQU.*/
[:SOURce[<n>]]:FUNCtion:SQUare:DCYCle
Syntax
[:SOURce[<n>]]:FUNCtion:SQUare:DCYCle {<percent>|MINimum|MAXimum}
[:SOURce[<n>]]:FUNCtion:SQUare:DCYCle? [MINimum|MAXimum]
Description
Sets the Square duty cycle of the specified channel.
Queries the Square duty cycle of the specified channel.
Parameter
Name
Type
Range
Default
[<n>]
Discrete
1|2
1
<percent>
Real
Limited by the waveform frequency
50%
Remarks
Duty cycle is defined as the percentage that the high level of Square waveform takes up in the whole
period.
When [:SOURce[<n>]] or [<n>] is omitted, the system sets the related parameters of CH1 by default.
Return Format
The query returns the Square duty cycle in scientific notation, with 7 effective digits. For example,
4.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.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 (
), the
instrument still uses the period if the period is valid for the new waveform type; the instrument
Summary of Contents for DG952
Page 2: ......
Page 168: ......
Page 181: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 7 ...
Page 185: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 11 ...
Page 187: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 13 ...
Page 199: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 25 ...
Page 200: ......