ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating sliders with variable limits

Solved!
Go to solution

Hi, i have to make a program for editing the membership functions of a fuzzy set. The basic problem is that I have the take the 4 x co-ordinates from the user for my trapezium. I've attached an illustration to make this more clear.

Clearly, 0<=a<=b, a<=b<=c, b<=c<=d, c<=d=<5 (see figure)

 

i'm setting the values of a,b,c,d using 4 sliders as controls. Can i somehow feed in these bounds as the upper and lower limits for the sliders and which dynamically update themselves while the VI runs? for example, say i adjust the value of b, i want that the ranges of a and c, which depend on b, to adjust themselves automatically on their respective sliders.

 

Is this possible?

 

Thanks.

 

 

0 Kudos
Message 1 of 4
(3,912 Views)
Solution
Accepted by Rainbow_Warrior

Hi

You can update the Slider Upper and lower limits using "Scale.Ranges" Property of slider

Hope this helps

Regards

Santosh

Message Edited by SanRac on 06-01-2009 01:53 AM
Message 2 of 4
(3,904 Views)

Hi Rainbow_Warrior,

 

SanRac has a great suggestion.  I have attached a VI and screenshot demonstrating what he is talking about.

 

 

 

Kristen H.

 

Message Edited by Kristen H. on 06-02-2009 10:43 AM
Download All
Message 3 of 4
(3,868 Views)

Hi Kristen,

 

Thanks a lot for your efforts.Your VI was made in a newer version than the one I have (8.5) so I couldnt open it, but the jpg made it clear what I have to do. Thanks again.

0 Kudos
Message 4 of 4
(3,847 Views)