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 position 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 >
