User manual

RIGOL Chapter 2 Command System
2-118 DG800 Programming Guide
Return Format
The query returns the PWM modulation frequency in scientific notation, with 7 effective digits. For example,
1.500000E+02 (the PWM modulation frequency is 150 Hz).
Example
:SOUR1:PWM:INT:FREQ 150 /*Sets the PWM modulation frequency of CH1 to 150 Hz.*/
:SOUR1:PWM:INT:FREQ? /*Queries the PWM modulation frequency of CH1 and the query returns
1.500000E+02.*/
[:SOURce[<n>]][:MOD]:PWM:INTernal:FUNCtion
Syntax
[:SOURce[<n>]][:MOD]:PWM:INTernal:FUNCtion
{SINusoid|SQUare|TRIangle|RAMP|NRAMp|NOISe|USER}
[:SOURce[<n>]][:MOD]:PWM:INTernal:FUNCtion?
Description
Sets the PWM modulation waveform of the specified channel.
Queries the PWM modulation waveform of the specified channel.
Parameter
Name
Type
Range
Default
[<n>]
Discrete
1|2
1
{SINusoid|SQUare|TRIangle|RAM
P|NRAMp|NOISe|USER}
Discrete
SINusoid|SQUare|TRIangle|RAMP|NR
AMp|NOISe|USER
SINusoid
Remarks
This command is only applicable to the internal modulation source
(
[:SOURce[<n>]][:MOD]:PWM:SOURce).
When [:SOURce[<n>]] or [<n>] is omitted, the system sets the related parameters of CH1 by default.
SQUare: 50% duty cycle; TRIangle: 50% symmetry; RAMP: 100% symmetry; NRAMp: 0% symmetry;
USER: the arbitrary waveform selected for the specified channel.
Return Format
The query returns SIN, SQU, TRI, RAMP, NRAM, NOIS, or USER.
Example
:SOUR1:PWM:INT:FUNC SQU /*Sets the PWM modulation waveform of CH1 to Square.*/
:SOUR1:PWM:INT:FUNC? /*Queries the PWM modulation waveform of CH1 and the query returns
SQU.*/
[:SOURce[<n>]][:MOD]:PWM:SOURce
Syntax
[:SOURce[<n>]][:MOD]:PWM:SOURce {INTernal|EXTernal}
[:SOURce[<n>]][:MOD]:PWM:SOURce?
Description
Sets the PWM modulation source of the specified channel to internal (INTernal) or external (EXTernal)
modulation source.
Queries the PWM modulation source of the specified channel.