LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time stamps as conditions for loops

Solved!
Go to solution

Hi, I am new to LabVIEW. I'm looking for help with my vi, which has a while loop for wave forms (currently from a simulator) written to a text file. I wish to run the loop conditionally according to time stamps. I have time stamps for the start time and end time and current time on my front panel, and I wish for my while loop to run continuously until current time=stop time. I'm having a hard time finding any example code for this (simple?) operation, and I would really appreciate help. Ultimately I want time stamp info to incorporate into my data file but not the priority now. As you can see my code is a mess right now.

0 Kudos
Message 1 of 2
(2,412 Views)
Solution
Accepted by nwiman

Use an elapsed timer. Subtract the start time from end time and wire the result to the Time Target of the Elapsed Timer. The Elapsed Timer will be in your loop. Wire the "Time has Elapsed?" boolean to your loop conditional control.

Message 2 of 2
(2,406 Views)