06-05-2017 02:05 AM
Hello all
I'm quite new in using Labview and I need help to generate PWM with frequency 20 kHz and changeable duty cycle
I need generate this PWM via digital I/O NI 9403 and cDAQ-9184....
thanks
06-05-2017 02:11 PM
06-05-2017 08:25 PM
thanks bro for your reply but the attached links include PWM with counter port i only have digital I/O port
06-06-2017 11:03 AM
Oops, my bad. I should have checked the module type first. In your case, the information in my other post applies that I posted just yesterday in this same forum. I have attached a test vi that generates 20,000 samples per second and updates the signal (duty cycle if you wish) every 500ms. I wrote it for a 9401 module in a 9184 chassis, but I think it'll work the same for the 9403 module.
The code isn't pretty (one of the loops doesn't even have a way to be stopped, ha), but you'll get the idea of how to do the digital write.
Douwe
06-06-2017 11:56 PM
thanks so much for your reply bro
i cant open the VI file i have labview 2013 your labview version looks latest
could you send me the file again, Please?
06-07-2017 10:42 AM
Here it is for LV 2013. Let me know if this works for you.
06-12-2017 09:17 PM
thanks bro
actually it not work i still trying to identify the problem