12-07-2008 05:29 PM
My VI currently displays the elapsed time since acquisition started. I want to keep the vi running, but have a second timer that stops when a condition is met- (when acceleration data surpasses a value).
I've tried using while loops where the condition met=true stops the loop and the value can be displayed (see attached image). However, this entire thing needs to be placed inside a second while loop in order to continuously acquire data. When I do this, the VI will run for one second then stop. I dont think it likes the nested while loops.
I have also tried a case structure where the running time will be displayed when condition met=true.
The problem is, I want to record onscreen, (and hopefully to a text file) only the first time at which the condition is met- not have the time display when the condition is met.
The rest of the VI needs to continue running, and I only want the first value from the timer at which the condition is met.
Any ideas?
Thanks,
-Adam
12-08-2008 04:22 AM