LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time Based Progress Bar

Solved!
Go to solution

Hello all,

 

Has anyone got any ideas on how to implement a time-based progress bar?

 

For example if I have a while loop with a wait of 5 seconds the progress bar will fill accordingly and reset on the next loop? 

 

Examples I have previously seen usualy rely on a for loop with a defined number of iterations rather than time.

 

Cheers!

0 Kudos
Message 1 of 3
(3,251 Views)
Solution
Accepted by topic author quantisedpenguin

So if I wanted, say, to move in 1% increments over 5 seconds, I'd make a For Loop with a count of 100 (giving me 100 increments) and put a 50 msec wait inside it, turning it into a 5 second loop.

 

Bob Schor

0 Kudos
Message 2 of 3
(3,246 Views)

You'd do the same thing.

 

You have X amount of time you want to wait for.

You want the progress bar to update every Y seconds.  (Y=1 second?, 1/4 second?  longer?)

# of Iterations = X/Y  with a wait of Y inside the For Loop.

0 Kudos
Message 3 of 3
(3,239 Views)