LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

front panel slide control

Is there a way to programmically control the scale of a front panel slide control? Like wiring the "i" and "N" of a For loop to a FP slide control?
0 Kudos
Message 1 of 3
(2,787 Views)
On block diagram, right click on the slide control, go to "Create->PropertyNode->Scale->Range". Here you'll find property nodes to set the minimum, maximum, increment value, start value, etc.
 
If you want to do it like an N and i in a For loop, you'll have to do a little math.
N= (max - min) / (increment value)
0 Kudos
Message 2 of 3
(2,782 Views)
Thank you miguelc for the answer.  Now I can "wire up" to the slider's scale max & min values.  So now they are dynamic and not static constants.  My slide control's scale now can change dynamically as the "N" (total For loop iterations) value changes a couple times throughout run-time (as well as showing the preogress as "i" approaches "N"), and my progress meter changes according to jobs done and to-do as expected. 
0 Kudos
Message 3 of 3
(2,771 Views)