LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute a frame of a flat sequence structure for a specified amount of time?

Solved!
Go to solution

Hello,

 

I have a timed loop measuring a resistance value every 2 seconds. I would like to have this timed loop execute for a specified amount of time (e.g. 5 minutes). The timed loop itself is placed within a flat sequence structure so I am concerned that the measurement will be taken once and the next frame will begin to execute, without waiting 2 seconds for a successive reading (and not looping for, say, 5 minutes).

 

In other words, is it possible to have a frame of a flat sequence structure execute for a specified amount of time before moving onto the next frame?

 

Thanks for your assistance!

 

JFK_Aero

0 Kudos
Message 1 of 4
(2,995 Views)
Solution
Accepted by topic author JFK_Aero

All code in one sequence frame must complete before the next frame can execute.  So as long as your timed loop is setup correctly, the next frame cannot run until your 5 minutes is up (N = 5 minutes/2 seconds/measurement = 150 measurements).


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
Message 2 of 4
(2,990 Views)

I have no idea why you are using a sequence structure or why you are asking if you can have a frame execute for a certain time. You say you have a timed loop and with that, you specify how long it should run. Get rid of the sequence structure and let data determine execution order.

0 Kudos
Message 3 of 4
(2,988 Views)

Thanks a lot, I think what you've suggested will suffice.

 

Cheers

0 Kudos
Message 4 of 4
(2,979 Views)