LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a DAQ trigger to activate TDMS

Hello,

 

I wish to activate TDMS once a certain condition is met. Rather than using a boolean operation, however, I would like to use a digital trigger so I can gather some pre-trigger samples in my data. Is this possible? Thanks,

 

ntsirak1

0 Kudos
Message 1 of 4
(2,417 Views)

So you want to start logging to a TDMS file when a digital input bit on a DIO board goes active? It is possible to create an event that will trigger in that situation. Although I have never done it, I think you can trigger the event on an analog level as well.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(2,407 Views)

Yes, but I want the TDMS data to contain the pre-trigger samples as well. The data is also being continuously acquired in the background; I only want it to capture to TDMS at a certain point. Sadly, I think I'm going to need two DAQs. One to continuously capture, the other to trigger the TDMS.

0 Kudos
Message 3 of 4
(2,399 Views)

Not necessarily, as you acquire data buffer the current data as well as the previous N samples, Then when the tdms trigger occurs, dump the entire contents of the buffer into the file and start adding new data as it comes in.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 4
(2,391 Views)