LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Buffered aquisition with multiple counters on 6602

Here's the scenario: I have a 6602 card, and I need to do buffered event counting on five counters at once.

I can't use DAQmx, because the drivers don't support the 6602 yet.

The traditional DAQ drivers don't support multiple counters per group...

...so I'm left with needing to create five independent tasks, each responsible for it's own buffered counter operation. However, when I do this, each task gets assigned the same taskID, so I can't figure out how to differentiate between the tasks when it comes time to reading their respective buffers. I attached a quick example VI that shows the taskID problem.

Anyone know how to run multiple buffered counting operations at once?

-Michael
0 Kudos
Message 1 of 4
(3,055 Views)
Hi M.J.

This example VI should exactly do what you want:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DC9F56A4E034080020E74861&p_node=DZ52325&p_source=External

Hope this helps,
Luca
Regards,
Luca
0 Kudos
Message 2 of 4
(3,055 Views)
Michael,

I have one additional comment to complement the example Luca linked in his response. All of your tasks have the same taskID because you have not assigned each task a unique group number with the group input to Counter Group Config.vi. Luca's example demonstrates this process.

Good luck with your application.

Spencer S.
0 Kudos
Message 3 of 4
(3,055 Views)
Thank you both. The example didn't work too well (100% cpu usage, and didn't produce any data despite hooking up as described), but using it as an example, especially after fixing the group assignment, I got it working.

I also noticed I included the vi and not the llb...oops. Thanks for helping me out none the less!
-Michael
0 Kudos
Message 4 of 4
(3,055 Views)