02-23-2019 05:03 AM
Hi there,
I made a simple code that should be able to change duty cycle.
After running my code the display of Agilent 33220A should look like in the picture i attached.:
Desired settings: Pulse mode, f=1kHz, Amplitude=5Vpp, Offset, 2,5V
Could someone please tell me how i could change Dty Cyc in my labview code?
Kind regards,
Balázs
Solved! Go to Solution.
02-23-2019 05:01 PM - edited 02-23-2019 05:20 PM
The instrument is doing EXACTLY what you told it to do. You set the frequency for 1kHz. The pulse period of 1 kHz is 1 msec. You set the pulse width to 0.99998 msec. The duty cycle is Width/Period*100%. Ergo in your case (0.99998/1)*100% = 99.998%
You didn't specify what duty cycle you want. For example, if you want a 50% duty cycle you need to change the Pulse Width setting to 0.0005 (i.e., 0.5 msec)