1452 Keysight InfiniiVision 4000 X-Series Oscilloscopes Programmer's Guide
37 :WGEN<w> Commands
:WGEN<w>:FUNCtion:SQUare:DCYCle
(see page 1610)
Command Syntax
:WGEN<w>:FUNCtion:SQUare:DCYCle <percent>
<w> ::= 1 to (# WaveGen outputs) in NR1 format
<percent> ::= duty cycle percentage from 20% to 80% in NR1 format
For Square waveforms, the :WGEN<w>:FUNCtion:SQUare:DCYCle command
specifies the square wave duty cycle.
Duty cycle is the percentage of the period that the waveform is high.
Query Syntax
:WGEN<w>:FUNCtion:SQUare:DCYCle?
The :WGEN<w>:FUNCtion:SQUare:DCYCle? query returns the currently set square
wave duty cycle.
Return Format
<percent><NL>
<percent> ::= duty cycle percentage from 20% to 80% in NR1 format
See Also • "Introduction to :WGEN<w> Commands" on page 1435
• ":WGEN<w>:FUNCtion" on page 1446