LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling a progress bar with a timer

Solved!
Go to solution

Hi,

 

It seems that you used two instances of the slider.

 

On my picture, I used local variable, which points to one control.

 

I cannot remember if LV7 has local variable.

 

Try right click on the control and create>local variable, and then connect the local variable.

The local variable can be set as read or write.

 

Message 11 of 21
(1,954 Views)

You have two different slide indicators, one called "Slide" the other "Slide 3".  Replace Slide 3 with a local variable of Slide.

0 Kudos
Message 12 of 21
(1,953 Views)

Thanks!! Thats done it!

 

can i ask why you need to create it as a local variable and not how i had done it before? is it because it is being used twice in the same method?

0 Kudos
Message 13 of 21
(1,938 Views)

A given control can only have one terminal.  You duplicated your control and it had its own terminal.  You were writing to Slide in the first loop, but writing to a different indicator (Slide3) in the second loop.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

 

(PS:  "I" used as a word should be capitalized.)

0 Kudos
Message 14 of 21
(1,936 Views)

Thanks!!

0 Kudos
Message 15 of 21
(1,931 Views)

Could you please explain this method?

0 Kudos
Message 16 of 21
(1,894 Views)

Explain what method?

0 Kudos
Message 17 of 21
(1,890 Views)

i do apologise. The method by

0 Kudos
Message 18 of 21
(1,884 Views)

Hi

I am relatively new to LabVIEW.

Is it possible to control fill/progress bar using live timer?

 As in my live clock is running in the background and if the current time is 11:00AM, my progress bar should start filling at 11:20 AM for 10 minutes .

 

Thanks

0 Kudos
Message 19 of 21
(1,633 Views)

There's nothing to do with 11:00am.

Just do a comparison, if the clock is 11:20am, run a 6000 iteration loop with 100ms wait in the middle and wire the iteration to the progress bar. Also set the progress bar max to 5999.

 

If you want it to be stoppable, use a conditioned for loop.

0 Kudos
Message 20 of 21
(1,629 Views)