LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to have a continuous loop for specific time

hii
how can we run a loop continuously over and over for a specific perioed and loop should terminate after that period.please have a look at the attached prog and suggest me wt to do.in this prog i want to run part 3 continuously for the time specified by Exp.step .
thank you
0 Kudos
Message 1 of 4
(3,916 Views)
See attached, this is a loop which will terminate after a maximum alloted time (timeout) OR a maximum itteration, which ever is first.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 4
(3,905 Views)
In LabVIEW 7 and above there's also an Express VI called Elapsed TIme. It's really simple to use. Just enter a specified elapsed time, and it outputs values such as whether the time has elapsed yet (T/F) or how many seconds have elapsed. Use the Elapsed Time boolean value to terminate your loop.

Message Edited by Jarrod S. on 07-25-200609:49 AM

Message Edited by Jarrod S. on 07-25-2006 09:50 AM

Jarrod S.
National Instruments
Message 3 of 4
(3,901 Views)

Or simply use the "Elapsed time" express VI. (It is in the express...execution control palette). 🙂

(Don't forget to also add a manual stop button in case you need to stop early for some reason).

EDIT: I see Jarrod was a bit faster 😉

Message Edited by altenbach on 07-25-2006 08:03 AM

Download All
Message 4 of 4
(3,892 Views)