07-09-2019 05:56 PM
Hi--
I'm working on a project in which I need to collect data from 3 encoders (via 3 counters) and 1 analog signal synchronously. I was hoping to get some high-level guidance here on the best approach.
I was contemplating using the internal clock to trigger measurements from the 4 sources. My questions are the following:
Any assistance would be greatly appreciated.
Thanks!
Sandheep
07-10-2019 05:03 PM
Hi sandheep,
Strategies for synchronizing DAQmx tasks can be found here: http://www.ni.com/tutorial/5376/en/
The only strategy that won't work for your application is sharing a single task for all three channels. You can't put different channel types in the same task, and in fact, you can only have one counter per task as well. Otherwise you can use any of the examples from that tutorial as a starting point.
The pictures on that page are snippets, and can be dragged and dropped into LabVIEW to automatically copy the code.
Thanks,
07-10-2019 07:36 PM
Michael--
Thanks for the response--I think that maybe the "if it ain't broke don't fix it" approach might apply well here.
Thanks!
Sandheep