LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I display a progress bar which obtains its value from the loop of a sub-vi?

You right-click on the VI icon when it's open and choose VI options. Under Execution (I can't remember the exact text, my version is in German) you can choose specific options for the window appearance. In the version I have posted, the options for "Show panel when called" and "Close afterwards if originally closed" are selected. Additionally, I have chosen to not show the scroll-bars, menu list and the tool bar with the run buttons, but these are purely cosmetic.

Have a look through the options of my posted VI to see.

Hope this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 11 of 14
(2,445 Views)
I'm trying to do the same thing with a progress bar. The closest I have
come to increase/decrease control of the bar is to use a variable. Right
click on the variable name and select the desired indicator. Feed the
variable the data and the progress bar will follow. The indicator does
not need to be wired to anything and can be placed anywhere.

Jeff

RJay wrote:
> Appologies.
>
> The example for the pop-up window by reference did not work.
0 Kudos
Message 12 of 14
(2,090 Views)
> I'm trying to do the same thing with a progress bar. The closest I have
> come to increase/decrease control of the bar is to use a variable. Right
> click on the variable name and select the desired indicator. Feed the
> variable the data and the progress bar will follow. The indicator does
> not need to be wired to anything and can be placed anywhere.
>

If the terminal isn't used, but a local of the same direction is, then
you should delete the local and use the terminal. The terminal is the
primary, built-in access to the data of the control. Use it over
locals. Also try to use a minimum of locals as more locals open up the
possibility of more race conditions.

To update a progress bar on another panel,
use a control reference's
value property.

Greg McKaskle
0 Kudos
Message 13 of 14
(2,090 Views)
The reason I chose this way (other than not knowing another way) was
that I wanted to increase the value in the progress bar for 1 case
statement and decrease it for another. I have a while loop with a shift
register that is used to increment the progress bar in 1 case, and in
the other I just subtract 1 from the variable and then feed it back to
the variable. It only increments and decrements for 1 iteration as it
enters the case, (the button is pressed that sent me to the case). I am
now trying to figure out how to make the iterations continuous while the
button is held down. The 'button' controls a motor on a robot arm and
while it is held down, the motor drives. I want to represent the arm
segment pos
ition with the progress bar (smoothly and continuously).
I'll look into the reference value for the control.

Thanks for the suggestion.

Greg McKaskle wrote:

>> I'm trying to do the same thing with a progress bar. The closest I
>> have come to increase/decrease control of the bar is to use a
>> variable. Right click on the variable name and select the desired
>> indicator. Feed the variable the data and the progress bar will
>> follow. The indicator does not need to be wired to anything and can
>> be placed anywhere.
>>
>
> If the terminal isn't used, but a local of the same direction is, then
> you should delete the local and use the terminal. The terminal is the
> primary, built-in access to the data of the control. Use it over
> locals. Also try to use a minimum of locals as more locals open up the
> possibility of more race conditions.
>
> To update a progress bar on another panel, use a control reference's
> value property.
>
> Greg McKaskle
>
0 Kudos
Message 14 of 14
(2,090 Views)