LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I intercept the data for 5 seconds before the errormessage?

I need a function:

 When prgramm find an error, preserve the data  that are former and after 5 seconds from the error. Need not to preserve if no error. How can I intercept the data for  5 seconds before the errormessage?  

Thanks

0 Kudos
Message 1 of 3
(2,345 Views)

Use a cyclic buffer that can hold up to 5 seconds of data.

While loop, shift register, array, LV2GBL, action machine

Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 3
(2,343 Views)

If you are using LabVIEW 8.6, you might consider using the new Lossy Enqueue function. You would need to specify the size of your queue in advance, based on your data collection rate.

 

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Message 3 of 3
(2,331 Views)