Quantcast
Channel: Multifunction DAQ topics
Viewing all articles
Browse latest Browse all 6878

Simultaneous triggered read of analog and digital inputs

$
0
0

I am trying to write a DAQmx program (C#) that reads in a set number of points from various analog and digital channels from a PXI multifunction DAQ card. I want to start the acquisitions on the same trigger and collect an equal number of points at the some sample rate. I think I can setup an AnalogMultiChannelReader and a DigitalMultiChannelReader with appropriate clocks and then call ReadMultiSample on each to do this. The problem is that the trigger is external and it is possible it can arrive between starting each of the reads such that whichever process is called first is triggered but the other is not (presumably the time window here is very short but the triggers are very frequent and the program will run thousands of times so it seems it would be a possible bug). Is there a way to start both tasks simultaneously? Or a cleaner way to approach problem?


Viewing all articles
Browse latest Browse all 6878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>