Source[<n>]]:function:square:dcycle, Source[<n>]]:function:square:period – RIGOL DG1000Z Series User Manual

Page 121

Advertising
background image

Chapter 2 Command System

RIGOL

DG1000Z Programming Guide

2-109

[:SOURce[<n>]]:FUNCtion:SQUare:DCYCle

Syntax

[:SOURce[<n>]]:FUNCtion:SQUare:DCYCle {<percent>|MINimum|MAXimum}

[:SOURce[<n>]]:FUNCtion:SQUare:DCYCle? [MINimum|MAXimum]

Description

Set the square duty cycle of the specified channel.
Query 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%

Explanation

 Duty cycle is defined as the percentage that the duration of the high level of the

square waveform takes up in the 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 /*Set the square duty cycle of CH1 to 45%*/
:SOUR1:FUNC:SQU:DCYC? /*Query 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

Set the square period of the specified channel.
Query the square period of the specified channel.

Parameter

Name

Type

Range

Default

[<n>]

Discrete

1|2

1

<seconds>

Real

40ns to 1Ms (DG1062Z)

66.6ns to 1Ms (DG1032Z)

1ms

Explanation

 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 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 wavform type.

Return Format

The query returns the square period in scientific notation with 7 effective digits, for

example, 1.000000E+00 (the square period is 1s).

Example

:SOUR1:FUNC:SQU:PER 1 /*Set the square period of CH1 to 1s*/
:SOUR1:FUNC:SQU:PER? /*Query the square period of CH1 and the query

returns 1.000000E+00*/

Related

Command

[:SOURce[<n>]]:APPLy?

Advertising