LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do every 600 seconds to execute For loop?

HI,all

 

my for loop execute one has cost about 550 seconds

i want to  every 600 seconds to execute For loop

how can i do?

 

thanks~

0 Kudos
Message 1 of 40
(3,720 Views)

Do you mean that you want to iterate the loop every 600 seconds or execute the whole loop every 600 seconds?  More details will help us give you a better answer.

 

You can use the time funtions (e.g. "Get Date/Time in Seconds")  to find out how much time has elapsed and allow the loop to iterate once you hit 600 seconds.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 40
(3,715 Views)

yes,

I mean that i want to iterate the loop every 600 seconds.

0 Kudos
Message 3 of 40
(3,710 Views)

Like this?

 

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Download All
0 Kudos
Message 4 of 40
(3,705 Views)

You want to iterate every 10 minutes?  That's an extremely long time.  But here you go.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 40
(3,702 Views)

sorry,i express some error.

 

i want to wait 45 seconds then do this for loop at first

then every 600 seconds iterate this loop

 

how can i do?

0 Kudos
Message 6 of 40
(3,692 Views)

Common guys please post in 2009 version please. I have attached a sample program if you use a time delay of 600 seconds then you have to abort the code to stop execution inbetween if you wantso better don't go for that.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 7 of 40
(3,690 Views)

OK, like this?  By the way, this is pretty basic stuff.

 

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 8 of 40
(3,685 Views)

You really don't want to use a FOR loop for all that. The program needs to be interruptable at all times.

 

I suggest an event structure in a while loop. As an example, see also my links posted in my comment to a related idea.

0 Kudos
Message 9 of 40
(3,679 Views)

45 start and 600 loop.png

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
0 Kudos
Message 10 of 40
(3,659 Views)