LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger writing data to file

Solved!
Go to solution

Hi,

 

I'm new to Labview and I am having difficulty trying to make this work correctly.

 

What I'm doing is monitoring the output of a transducer and when it reaches a certain critical value I want it to write the data to a file.

 

I have this part working okay, but I'm currently using a greater than / equal vi to check the value against the instrument stream, so when the value drops below the critical value it stops recording.  I want it to continue to record for a set number of mins after the critical value is reached.

 

How would I do this?

0 Kudos
Message 1 of 5
(2,991 Views)
Solution
Accepted by topic author dgg04
Look at using the Elapsed Time Express VI.  So when the condition is first met, it triggers the VI and it will keep logging the data until the Express VI says the time has elapsed.
0 Kudos
Message 2 of 5
(2,984 Views)

Thanks!

 

I figured it out using the Elapsed Time VI like you suggested.

0 Kudos
Message 3 of 5
(2,959 Views)

Hi,

I have exactly the same question,

I attach my data acquisition code to this message.

I want the code trigger "writing" whenever the amplitude of signal >=  0.5 V.

Could you please help me with this matter?

 

Peter

0 Kudos
Message 4 of 5
(2,475 Views)

Were you able to try implementing the Elapsed Time Express VI as previously suggested?  

 

Here is some additional documentation on the Elapsed Time Express VI for your reference:

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/express/express-execution-control/e...

Kendal C.
Technical Support Engineer
National Instruments
0 Kudos
Message 5 of 5
(2,456 Views)