Quantcast
Viewing all articles
Browse latest Browse all 67219

use reference trigger DAQmx TDMS logging

I've written a VI that streams data to a TDMS file when the user specifies using the DAQmx Read Logging.Pause property.  Now I would like to add the capability to stream the data to the file using a hardware reference trigger.  I want to use a reference trigger because I need the data pre and post trigger. 

 

The task has 34 channels sampling at 10000 Hz.  One of the channels is the source for the digital reference trigger.  The trigger is rising edge step function.

 

I'm getting error -200284 when I call the DAQmx Read function for any timeout value not equal to -1.  If I set timeout to -1 I never see the trigger. I know the source gets the trigger because I can see it in MAX and in the data file produced in the original configuration.  How am I incorrectly implementing the trigger? 


Viewing all articles
Browse latest Browse all 67219

Trending Articles



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