Source[<n>]][:mod]:pwm:state – RIGOL DG1000Z Series User Manual

Page 162

Advertising
background image

RIGOL

Chapter 2 Command System

2-150

DG1000Z Programming Guide

[:SOURce[<n>]][:MOD]:PWM:STATe

Syntax

[:SOURce[<n>]][:MOD]:PWM:STATe {ON|1|OFF|0}

[:SOURce[<n>]][:MOD]:PWM:STATe?

Description

Turn on or off the PWM modulation function of the specified channel.
Query the on/off status of the PWM modulation function of the specified channel.

Parameter

Name

Type

Range

Default

[<n>]

Discrete

1|2

1

{ON|1|OFF|0}

Bool

ON|1|OFF|0

OFF

Explanation

 PWM (Pulse Width Modulation): the carrier pulse width changes with the

transient voltage of the modulating waveform.

 The PWM carrier waveform can only be pulse and the PWM function can only be

turned on when the current waveform of the specified channel is pulse. The

different settings of various parameters (such as the frequency, amplitude, DC

offset, pulse width and duty cycle) of the carrier waveform will influence the

PWM modulated waveform.

 When [:SOURce[<n>]] or [<n>] is omitted, the system sets the related

parameters of CH1 by default.

 If the sweep function (

[:SOURce[<n>]]:SWEep:STATe

) or burst function

(

[:SOURce[<n>]]:BURSt[:STATe]

) is currently enabled, it will be disabled

automatically when the modulation function is turned on.

Return Format

The query returns ON or OFF.

Example

Assume that the current waveform of CH1 is pulse,
:SOUR1:PWM:STAT ON /*Turn on the PWM modulation function of CH1*/
:SOUR1:PWM:STAT? /*Query the on/off status of the PWM modulation function

of CH1 and the query returns ON*/

Related

Commands

[:SOURce[<n>]]:BURSt[:STATe]

[:SOURce[<n>]]:SWEep:STATe

Advertising