Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Help in PWM

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

0 Kudos
Message 1 of 7
(3,425 Views)

I think Figure 3 in this article would work for you: http://www.ni.com/tutorial/2991/en/.

 

Douwe

 

 

 

0 Kudos
Message 2 of 7
(3,388 Views)

thanks bro for your reply but the attached links include PWM with counter port i only have digital I/O port

0 Kudos
Message 3 of 7
(3,381 Views)

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

0 Kudos
Message 4 of 7
(3,370 Views)

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?

0 Kudos
Message 5 of 7
(3,362 Views)

Here it is for LV 2013. Let me know if this works for you.

0 Kudos
Message 6 of 7
(3,359 Views)

thanks bro

 

actually it not work  i still trying to identify the problem

0 Kudos
Message 7 of 7
(3,318 Views)