From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increment and decrement buttons to change dial knob numeric control value

Solved!
Go to solution

I have a numeric knob with values { 1, 2, 3, 3.5 ,4, 5, 6, 7, 8, 9, 10 }. I have two buttons, one for increment and other for decrement. 

 

Using these button I need to change the knob values. Kindly help.

 

Download All
0 Kudos
Message 1 of 5
(1,341 Views)

I could one solution, any other solution kindly let me know.

 

how to change pointer of knob using property nodes.

0 Kudos
Message 2 of 5
(1,327 Views)

Hi msabah,

 

your VI does exactly what you have programmed to do!

 

Why do you use "Scale.Increment" when you want to change the knob value by exactly "1"?

Why do you subtract the current value from Increment in the "decrement" event?

Why don't you use AutoCleanup?

Why is there a "default if unwired" tunnel?

Why is there a timeout event which is never executed?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(1,325 Views)

Since in the knob after the value 3, it has to increment to 3.5. I wanted to use a property node which knows the difference between two pointer values in the knob. 

 

In the front panel when I drag the pointer of the knob it properly changes from { 1,2,3,3.5,4,5,6,7,8,9,10}. 

 

How to change the knob pointer using property node to the next pointer? 

0 Kudos
Message 4 of 5
(1,306 Views)
Solution
Accepted by topic author msabah38

Hi msabah,

 

I would solve it like this:

 

In general I would not use a knob here, but an enum or ring…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(1,299 Views)