LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Refining the slider with a knob

Hello.

Right now, I can adjust the slider, however is it possible to add a knob which depends on the value of the slider. Let's say the slider is at 7.5. Is it possible to adjust the knob such that the values can decrement to 7.49,7.48, 7.47...?

 

Programming_beginner_0-1691638472892.png

 

0 Kudos
Message 1 of 6
(845 Views)

Hi beginner,

 


@Programming_beginner wrote:
is it possible to add a knob which depends on the value of the slider. Let's say the slider is at 7.5.
Is it possible to adjust the knob such that the values can decrement to 7.49,7.48, 7.47...?

Yes.

Yes.

 

Spoiler
Do you want to add one more slider?
Do you want to adjust the increment in the data entry properties of the slider?
Where do you you want to place a "knob"?
Why should that be a "knob"?

Maybe you should explain your problem with more details…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(819 Views)

Do you want to add one more slider? - No
Do you want to adjust the increment in the data entry properties of the slider? - I don't know what you meant by that.
Where do you you want to place a "knob"? - Right beside the slider
Why should that be a "knob"? - To finely adjust the fileglobals variable. It's like a typical power supply with 2 knobs. One for the rough measurement, the other is to fine tune till a precise value.

0 Kudos
Message 3 of 6
(812 Views)

Hi beginner,

 


@Programming_beginner wrote:

Do you want to adjust the increment in the data entry properties of the slider? - I don't know what you meant by that.


Basic LabVIEW knowledge: Right-click any FP element to access it's property dialog. Numeric elements will present a "Data entry" tab within that dialog…

 


@Programming_beginner wrote:

Where do you you want to place a "knob"? - Right beside the slider
Why should that be a "knob"? - To finely adjust the fileglobals variable. It's like a typical power supply with 2 knobs. One for the rough measurement, the other is to fine tune till a precise value.


Then you need to place that additional knob next to your slider.

And you need to add code to handle the user actions on that additional knob…

 

What have you tried and where are you stuck?

Why don't you enable the numeric display of the slider so the user can input the exact value directly???

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(806 Views)

Seems simple enough.

Programming_beginner_0-1691649702725.png

Perhaps a knob won't be necessary after all. However, I will try to add a knob to act as a fine tuner or increment. 

0 Kudos
Message 5 of 6
(796 Views)

Hi beginner,

 


@Programming_beginner wrote:

However, I will try to add a knob to act as a fine tuner or increment. 


Use a classic slider control: it comes with increment/decrement for free…

I still recommend to make the digital display visible for your slider!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(789 Views)