LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically validate the value of a numeric control ?

Hi all,
 
Here is my problem: when editing the value of a numeric control I often forget to press enter or to click the "Enter text" button to validate the value.
When I forgot to do that and generate another event (e.g. click on a button) the "value change" event of that numeric control doesn't seem to be caught.
As a result the value of the numeric control is effectively changed on the front panel without triggering the code I want to be executed on "value change".
Is there an easy way to automatically validate the value of a numeric control (equivalent to "Update value while typing" for text controls) ?
 
Thanx in advance for your help,
 
Jean-Philippe
0 Kudos
Message 1 of 4
(2,377 Views)
Can you post a simple example that shows what you are seeing?  When you change the value of the control and then click on some other control you should get the event.  I wonder if there is an issue with your code that explains why it is not firing.
0 Kudos
Message 2 of 4
(2,373 Views)
I have attached a simple vi (LV8.2) to test numeric events.  When I change the numeric and then I click anywhere outside the box, even if I click the boolean button, the numeric value change event is executed.  Check to see if you have any Key Navigation assignments for the Numeric control.  This may be your problem.  Also, look at Tools - Options - Environment to see if you have the "End test entry with Enter key" checkbox checked.  I have it unchecked.  Having it checked may force you to press the Enter key to fire off the value change event.

Message Edited by tbob on 03-10-2008 12:51 PM
- tbob

Inventor of the WORM Global
Message 3 of 4
(2,361 Views)

Evan and tbob,

Thanx for your help! Checking that "End test entry with Enter key" checkbox solved my problem.

best regards,

Jean-Philippe

0 Kudos
Message 4 of 4
(2,337 Views)