10-26-2017 06:25 AM
Hi,
In String Control I can enable 'Update while typing' option so that String 'Value change event' will be captured for every string input.
Similarly can I do for numeric? I need to capture Numeric value change immediately if I change any values in that control?
Is it possible?
Solved! Go to Solution.
10-26-2017 06:47 AM
No, that's not possible for a numeric control.
A workaround might be this:
Regards, Jens
10-26-2017 06:51 AM - edited 10-26-2017 06:55 AM
I do not know of any simple ways. You could use the Key Down event and and use the Numeric Text->Text property to figure out your updated value and write to the control. It is a hack, but it does seem to work, at least in LabVIEW 2016.
10-26-2017 06:52 AM - edited 10-26-2017 06:52 AM
Two people, same idea.
10-26-2017 07:22 AM
Of course. Keydown will capture that but it applicable to all keys. But how can I check whether there is any value change in that numeric control?
I.e., Even I press Arrow keys it will be captured.. So, I need to use filter [To check number?] and depending on it I should decide whether to discard that even or not.
Is there any other solution?
10-26-2017 07:30 AM
You could use the "Key Down?" event and read out the NumText.Text in that case. It will capture the text before the key-press-event. Then compare that with the "value" from the event "Key Up".
Regards, Jens
10-26-2017 07:39 AM
Thanks.
But I need to handle for more than 10 numeric, That's why problem!
10-26-2017 07:44 AM
Why is that a problem? You can define the same event for more than one control. In addition to reading the NumText.text property you than probably also have to evaluate the property "Label.Text" in order to distinguish between the different numeric controls.
Regards, Jens