Output Square Wave at arbitrary frequency and duty cycle | LabJack
 

Output Square Wave at arbitrary frequency and duty cycle

2 posts / 0 new
Last post
Yannick
yannokolo's picture
Output Square Wave at arbitrary frequency and duty cycle

Hey, I want my LabJack U3 to output a square wave at relatively low frequency (~1Hz) and a low duty cycle such that the pulse is only a couple milliseconds long. I have been doing that programatically ia python: Turn on, wait until the millisecond has passed, turn off. However this gives quite a substantial jitter in pulse length, so this is not the true solution. How can I do this with my U3? Timers do not seem to have a mode that fits my needs, I think.

Thanks for your help!
-Yannokolo

LabJack Support
LabJack Support's picture
Our 16-bit PWM output feature

Our 16-bit PWM output feature is one potential solution:

https://labjack.com/support/datasheets/u3/hardware-description/timers-co...

You could also get better pulse duration when doing command-response communications by using the wait technique described on the following page:

https://labjack.com/support/app-notes/waveform-generation