02-20-2014 08:18 AM
I am using LabVIEW 2012. I have some numeric controls that I need to control the allowed values of. I need LabVIEW to ignore nonallowed values (coercion does not fit my particular need). When I set the control to a nonallowed value I was expecting upon hitting return that LabVIEW would throw away the nonallowed setting and instead revert to the initial value or the default value. However LabVIEW seems to accept the nonallowed value if I type it in. The constraint only seems to be enforced when I use the increment/decrement values. If I use coerce the rule is enforced when typing the number. I seem to remember being able to get the desired behavior using ignore in the past but perhaps my memory is faulty. I have seen several postings for a similar problem for LabVIEW 8.6 that seemed to be corrected in 8.6.1. If I have to I can use a text ring to restict the allowed values. However I would like to find out if I am remembering correctly, and if so, if there is some nuance I am missing.
02-20-2014 08:25 AM
I'd say your memory is faulty. It sounds like it is doing exactly what it is supposed to: Ignore going out of this range's limit. Another option for you is to use an event structure to catch the value change event and revert back if you typed in an out of range value. Of course, that only works when the program is running.