08-17-2012 12:45 PM
The Boolean is what I used to create the issue with the numeric. LabVIEW doesn't recognize the change event because technically the numeric is still active even though you don't see the cursor anymore. The boolean is the most likely place where you would have this Return Key Navigation setup (usually an OK button).
You could also see this behavior if you have any key down filter events running where you are discarding an Enter/Return key.
08-17-2012 12:53 PM
richjoh, thanks for your reply. The event trigger is definately selected as 'Value Change'. If I move the slider up and down, the event triggers. If I put the cursor next to a digit in the numeric field and click the Up/Down key on the key board, the event triggers. Clicking mouse button, while cursor is inside the numeric field, nothing happens.
08-17-2012 01:58 PM
Does it work for the Return key? The Return (with the letters) and Enter (part of the number keypad) keys register as different keys.
Something has to overriding the Enter key, whether it is another control with key navigation or you are filtering it with an event structure.
08-17-2012 04:02 PM
Crossrulz, thank you for your reply. On my keyboard, both the key above 'Shift' and the key at the lower right corner of the number key pad are labeled 'Enter'. And they both don't work.
08-17-2012 04:06 PM
Crossrulz, forgot to memtion that I did not map any Key Navigation and did not use filter (not sure what filter is, so dd not actively turn filter on, but maybe unintentionally. Can you educate me on filter?)
08-20-2012 08:03 AM
Check out the attached VI (saved in 2011). I have an event structure. There is a case for "Key Down". If you press each of the Enter keys, you will see that one of them is actually Return and the other is Enter. There is also a filter event (Key Down?). This allows you to catch the event and decide whether or not you actually want the event to be thrown. So in the case I gave, if you press ESC, the filter event will discard the key down event and exit the loop.
08-20-2012 10:46 AM
Crossrulz, can you save your vi in 2010? I only have LabVIEW 2010. Thanks.
08-20-2012 10:53 AM
@richard.koo wrote:
Crossrulz, can you save your vi in 2010? I only have LabVIEW 2010. Thanks.
Saved it in 2009 just in case.
08-20-2012 11:47 AM
Crossrulz, thank you for your vi. It clearly demonstrates the use of KeyDown and KeyDown? which is new to me. Unfortunately it is not the problem I am having. I still don't know why my numeric control does not respond to Return or Enter keys any more.
08-20-2012 01:02 PM
Can you try disabling or change both plot to a numerals then confirm whether or the Value Change event fires on Enter key? In other words reduce processing on the UI thread.