LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire certain amount of data after trigger happens

Hi all

I have a question about the Software trigger.
I am using software analog trigger with a condition of "Above certain level." I need a 10 seconds worth of data after it triggers. My sample rate is 24KHz and scans per iteration is 10000.

I am using the example const. Acq&graph  voltage-analog Software trigger.vi which comes with Labview.
The problem I m facing is that if i use the same Vi then it will only write 20000 samples in the file as the scans per iteration is 10000. But I need specify the amount of data I need.
How to achieve this.

Thanks

Nitin
0 Kudos
Message 1 of 2
(2,493 Views)

Hi Nitin-

I'm not quite sure why you're using the Above Level condition if you're wanting to acquire 10 seconds worth of data after the trigger.  This would be better handled with the Rising Edge condition since Above Level would cease acquiring data once the signal dropped below that chosen value.  If you use Rising Edge instead, you can simply add some conditional logic that stops the DAQ loop 10 seconds after the Trigger Out line on the Analog SW Trigger.vi goes TRUE, as opposed to immediately which is the case by default.

Hope this helps!  Good luck!

Drew Pierce | District Manager, Central Texas | National Instruments
0 Kudos
Message 2 of 2
(2,468 Views)