Source[:mod]:pwm commands, Source[<n>]][:mod]:pwm[:deviation]:dcycle, Source[:mod]:pwm commands -145 – RIGOL DG1000Z Series User Manual

Page 157

Advertising
background image

Chapter 2 Command System

RIGOL

DG1000Z Programming Guide

2-145

:SOURce[:MOD]:PWM Commands

[:SOURce[<n>]][:MOD]:PWM[:DEViation]:DCYCle

Syntax

[:SOURce[<n>]][:MOD]:PWM[:DEViation]:DCYCle

{<percent>|MINimum|MAXimum}
[:SOURce[<n>]][:MOD]:PWM[:DEViation]:DCYCle? [MINimum|MAXimum]

Description

Set the PWM duty cycle deviation of the specified channel.
Query the PWM duty cycle deviation of the specified channel.

Parameter

Name

Type

Range

Default

[<n>]

Discrete

1|2

1

<percent>

Real

Refer to the “Explanation”

20%

Explanation

 Duty cycle deviation represents the variation (in %) of the modulated waveform

duty cycle relative to the original pulse duty cycle

.

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

parameters of CH1 by default.

 The duty cycle deviation is limited by the minimum duty cycle and current edge

time. The duty cycle deviation cannot exceed the current pulse duty cycle.

 If the “Duty Cycle” is currently selected in the pulse of the specified channel

(

[:SOURce[<n>]]:PULSe:HOLD

), “Duty Dev” is displayed in the interface when

the PWM modulation function is enabled; if the “Pulse Width” is currently

selected in the pulse of the specified channel, “Width Dev” is displayed in the

interface when the PWM modulation function is enabled.

Return Format

The query returns the PWM duty cycle deviation in scientific notation with 7 effective

digits, for example, 1.500000E+01 (the PWM duty cycle deviation is 15%).

Example

:SOUR1:PWM:DCYC 15 /*Set the PWM duty cycle deviation of CH1 to 15%*/
:SOUR1:PWM:DCYC? /*Query the PWM duty cycle deviation of CH1 and the

query returns 1.500000E+01*/

Related

Command

[:SOURce[<n>]]:PULSe:HOLD

Advertising