LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing front panel control through block diagram

This is probably basic for most of you.  I want to have a control increment by 10 from 0-100 and than once it passes 100 it needs to increment by 100 until it reaches 1000.  What functions would I need to use in order to change the control being used on the front panel once the value of the first control passes 100?

0 Kudos
Message 1 of 5
(3,640 Views)
there is a numeric control property labelled... "Data Range-Increment". When you control is over under 100 you could set this property all programmatically from the block diagram.
0 Kudos
Message 2 of 5
(3,627 Views)

This is how I'd do it (basedon richjoh's answer).

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 5
(3,608 Views)

I get unwanted behavior at the transition point unless I add extra logic. even if I change your comparison node to a greater than or equal to, I still have to increment the control twice to get past the transition point, and then the indicator holds an illegal value. This way is suspiciously complex, but I find that it works smoothly:

 

 

take note that I have set the data entry properties on the control to coerce values outside of the min and max limits and to coerce values to match the min, max and increment settings (right click on the numeric indicator to find these settings).

 

Message Edited by Root Canal on 10-23-2008 11:59 AM

global variables make robots angry


Message 4 of 5
(3,603 Views)

Thanks guys it worked great.

0 Kudos
Message 5 of 5
(3,540 Views)