LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Knob ctrol's behavior

Hello,

When define a knob ctrol , which ranges from 0.0~50.0, hope can just regulate it from the little value to the big , or reverse . but I find that it can be turned to the zero from the biggest value directly ,how to modify the behavior , so that it can be turned to the little value from the bigest must experienced the middle scale ?
0 Kudos
Message 1 of 3
(3,117 Views)
Hi davidLee,

Unfortunately at this time what you describe is the behavior of the knob control and there is no option available to quickly change the behavior.

For the long term I would suggest creating a product suggestion by clicking the "feedback" links available on the Contact NI page.

As far as the short term is concerned there are two options. First, you might consider programmatically preventing this action from taking place. By keeping track of the past values of the knob you control you should be able to prevent the "jump" from minimum to full-scale from being passed to the rest of your application. This code could also set the controls value back to the value before the "jump".

A simpler solution for now would be to use a different control such as the slider. The graphical representation of the slider will make it much more difficult for the user to unintentionally change from the minimum to maximum value.

Scott Y
NI
0 Kudos
Message 2 of 3
(3,093 Views)
Look at Roberto's solution here.
0 Kudos
Message 3 of 3
(3,090 Views)