LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Progress bar that shows the progress of measurements

Solved!
Go to solution

how to create a progress bar which gets initiated once a button is pressed and fills up with every second elapsed? Mainly i want to create the same progress bar as it appears in windows or winrar kinda things where the expected time and elapsed time is shown.

0 Kudos
Message 1 of 10
(4,885 Views)

Hi Naina,

 

expected time = elapsed time *100% / (progress in percent)

So you need just two values "elapsed time" and "progress" to calc expected time and to show that on a bar...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(4,873 Views)

thanks for the reply GerdW.

 

but what i mean is how will the progress will fill up by every second elapsed. i am thinkg to put the progress bar in 'for' loop but not getting how to set the timer which changes the progress bar and shows like running.

0 Kudos
Message 3 of 10
(4,857 Views)

Hi Naina,

 

- I would use a while loop when you don't know how long the progress will run...

- I would use a wait function in the loop set to wait for 1000ms to get an update each second...

- you need to now from your process the progress and the elapsed time (as said before) and additionally the state (running or not running). That's all you need to know to calc the progress bar...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 10
(4,853 Views)

yeah i think that will do...

 

will post my progress bar to show my progress on this...:D

 

thank you!

0 Kudos
Message 5 of 10
(4,850 Views)

hi 

is that what u're looking for ? ( see attachement ) !

AR
0 Kudos
Message 6 of 10
(4,841 Views)

oops..i have'nt upgraded..:(

 

can i get that in 11 version?

0 Kudos
Message 7 of 10
(4,836 Views)
Solution
Accepted by topic author NainaNarang
Message 8 of 10
(4,833 Views)

yeah...its working great...

 

thanks a lot ABDESLAM and off course GREDW..:)

0 Kudos
Message 9 of 10
(4,824 Views)

this was what actually i needed...

 

 

thanks a lot for the help...:)

0 Kudos
Message 10 of 10
(4,778 Views)