LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric Dial Button

Hello,

I'm quite a newbie to Labwindows/CVI and I have to edit a program which was created by someone else.
In this program the Numeric Dial Button is used to turn a gasstove on.

My problem is the fact that when you turn the button and you keep on turning when the button reached 100 (in my case; the far right side of the button), the button returns to 0 (the far left side of the button). The same when you keep on turning to the left after it has reached 0, it goes to 100.
I don't want this to happen, because people who use the program must make sure the gasstove is turned off, but when this happens, it could easily be 'on' when someone doesn't want it.
Is there any way to prevent this from happening?

I tried my best to make it clear, but English is not my native language, so I hope anyone can make sense of it 🙂
Any help would be great!
0 Kudos
Message 1 of 3
(3,142 Views)
I saw a discussion several years ago on this subject which I wasn't able to find again now, so this is my personal solution to this (maybe not so polite but it works...)

You could set a callback for the control and check EVENT_VAL_CHANGED event to filter out actions on the control that exceed the limits you want.

Look at the simple project attached (written in CVI 6.0).

Hope this helps
Roberto

Message Edited by Roberto Bozzolo on 04-11-2005 05:54 PM



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,135 Views)
Ah, that works great!
Thanks very much!
0 Kudos
Message 3 of 3
(3,114 Views)