LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire data with simple 5V trigger

I have a 5V ananlog signal that I want to use as a trigger.  This is an on/off signal.  I have used several different setups of the DAQmx Trigger.VI with moderate sucess.   I am able to trigger the start of my acquisition, but when my 5V signal goes off, my data acquisition does not stop.  I've been able to acquire signals for a finite time using the trigger with a properly set DAQmx Timing.VI, but I would like to record data when my signal is high and stop when it goes low.  Is a loop my only option?  Thank you. 
0 Kudos
Message 1 of 2
(2,865 Views)

Just some initial thoughts...

 

If you have some counters available, you could generate a sample clock with your counters and use your "Trigger signal" as a gate for the counter.  Then your acquisition would be running at all times, but you would only receive a sample clock when that trigger is high. 

 

This may not be the best way, but it would work and should be fairly simple to implement.

Scott G.
AE Specialist
National Instruments
Message 2 of 2
(2,862 Views)