LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i create 6 digital 25Hz PWM output signals with my PCI-6221 card?

Hi!
I´m a student, who´s trynig to control a gasturbine process for my diploma thesis. The control program should be written in LabView 8. I need to control 6 25 Hz PWM signals for the gasvalves. The  needed accuracy of the duty cycle has to be about  0.1 %.
 A  tech. engeneer from  NI  told  us , that  we can  do this by using one single digital output for each PWM.
Now, after a while, i need to implement it into my program. But there are troubles:
My NI-PCI-6221 standard card only has 2 couteroutputs and only the first of the 3 ports seems to be buffered (Error Nr.  201062)...
I tried to do the programming, by manipulating the "DIO_PWM_50Hz.vi" I found in google.
Does anyone of you have any information or helpful examples how i can create these PWM with my card, or did I get a wrong Information by the salesagent (...not the first time....)?
Thanks for your help

Tobi
0 Kudos
Message 1 of 3
(2,519 Views)
Here you can find an example, how to do this:
 
As the text says, best would be to use the counter. As your Hardware has only 2 Counters, you would need additional hardware. Best would be to use a Counter-Card (660x), thes boards have up to 8 counters, so you coulkd control your 6 gasvalves indipendently.
 
The soultion with the timed digital outputs of the m-series boards would only work, if you can use the same timing (one counter) for all 6 outputs.
 
Hope this helps!
0 Kudos
Message 2 of 3
(2,509 Views)
Hello Andre!
Thanks for your help. I already knew the example you sent me. Unfortunately I need to control 4 different timings for my output signals and even measure 2 PWM, so i think i need to get another card.
0 Kudos
Message 3 of 3
(2,501 Views)