LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run a for loop for specified time period

Hi

I want to execute a for loop for a certain specified duration which keeps changing.I want to specify the duration for each run and I want a for loop to be excuted for the same.So how do I  interface a timer to the for loop's loop count?

Thanks,
Sukanya
0 Kudos
Message 1 of 8
(7,862 Views)
Do you want to run the loop for a variable amount of time or for a variable number of iterations?
0 Kudos
Message 2 of 8
(7,859 Views)
I'm not too sure.This is what I need.I have a VI that captures videos and saves it as a .avi file.Now I need to add another label to the display through which I can specify how long ( in seconds) the video should be captured.I initially had the VI writen using a while loop.I changed it to a for loop so that I can add this parameter.But I'm kind of confused now as to how to proceed.

Thanks,
Sukanya
0 Kudos
Message 3 of 8
(7,847 Views)
Sounds like you would want to run a Loop( at a preset iteration rate) for specified number of seconds. Is that correct?
0 Kudos
Message 4 of 8
(7,826 Views)
you can use Timed loop for the said purpose it will work fine as i think
Haider
0 Kudos
Message 5 of 8
(7,814 Views)
Yes,that's precisely what I want to do.
0 Kudos
Message 6 of 8
(7,805 Views)

Look at attached VI

This link will teach you how to configure a timed while loop

Hope this helps

Regards,

Dev

0 Kudos
Message 7 of 8
(7,802 Views)
Oops, my example was a wrong one, please remove this reply.


Message Edited by Eugen Graf on 01-16-2008 08:08 AM
0 Kudos
Message 8 of 8
(7,801 Views)