ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with control

Hi,

 

I have a numeric control ,  I set the minimum to 1 and maximum to 50, with increment of 1. However, I do not want the number 7 to be available in the numeric control. Is there a way to handle this using property node? or any other simpler way, I want to avoid many codes as possible.

 

i.e. the control values are 1 2 3 4 5 6 8 9 10 11.......50. If the user tried to type in 7, it will either change to 6 or 8, and if he uses the increment button from 6 it will jump to 8.

 

Thanks

0 Kudos
Message 1 of 5
(3,329 Views)
Probably you would need to use a Value change property in an event structure.  Whenever the value changes, check if it is equal to 7.  And if it is, make the value either 6 or 8 (whichever you want) using a local variable or a Value property node.
0 Kudos
Message 2 of 5
(3,320 Views)

Hello...

 

See attached VI. It should solve your issue.

 

Dan07

0 Kudos
Message 3 of 5
(3,305 Views)

Hi;

 

I think this example can help you get what you're looking for.

 

Good luck

 

Francisco Arellano

Francisco Arellano

National Instruments Mexico
Field Systems Engineer - Energy Segment
www.ni.com/soporte
0 Kudos
Message 4 of 5
(3,277 Views)

This is as simple as I can get it.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 5 of 5
(3,254 Views)