LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

manipulating numeric control

hi,
if someone enters a number in the numeric control that i do not want, i would change that value, into a default value, so as to run the program. However, i also want the value entered on the numeric control in the front panel, to automatically change into the default value, instead of the number i do not want, on the front panel. Is it possible to do so?
0 Kudos
Message 1 of 4
(2,690 Views)
you can use an event structure to capture the value change event then do your evaluation of the number and if you want it set back to the default you can use a property node or a local to reset the value...

if you need an example (lv7 or 7.1) i can send you one...

Dan
0 Kudos
Message 2 of 4
(2,690 Views)
hi dan,
i would really appreciate if you could send me an example (lv 7).
thanks
adeline
0 Kudos
Message 3 of 4
(2,690 Views)
It sounds to me like you need the "Range" property of a numeric item. Pop up on the control and you'll see data range near the bottom of the menu list. This allows you to limit its range so they cannot enter values too big or too small. If it's the case that valid numbers are 1,2,4,5,6 but not 3 then you need to approach it in a more complex manner, probably a menu ring.
Yours Sincerely
John .tradersmicro.com
0 Kudos
Message 4 of 4
(2,690 Views)