Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx - counter input and output at the same time?

Hi Kevin

 

If I understand correctly. It means that one counter can generate one counter output and one digital output. With this coorelated DO, I can save one counter. Another counter can be used for the encoder reading. Do I have same frequency of PWM and different duty cycle of PWM? Thanks! Because I want to set different Duty Cycles of both PWMs depending on the demanding load voltage.

 

0 Kudos
Message 11 of 13
(81 Views)

I didn't really look over all the code once I saw the attempt to do 3 counter tasks with 2 counters.

 

For independent PWM control, you'll need to 2 counter output tasks.  So then you'll need a 2nd USB-6259 to read your encoder.   Never mind about correlated DO, it isn't going to work out for your needs now that I understand them better.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 12 of 13
(77 Views)

Thank you Kevin! I am using two USB6229. It works now.

0 Kudos
Message 13 of 13
(68 Views)