EasyManua.ls Logo

Rigol DG800 Series - Page 102

Rigol DG800 Series
209 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RIGOL Chapter 2 Command System
2-88 DG800 Programming Guide
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.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.

Other manuals for Rigol DG800 Series

Related product manuals