02-02-2016 03:53 AM
Hi All,
I am working on a front panel with multiple input controls(rings and textboxes). I want to set the availability of the proceed button based on the values of the input controls. My idea was to validate the input when the value of one of the input controls changes. Is it possible to write the validation code only once and hook it to multiple events (input controls value change) ?
Thanks in advance,
Solved! Go to Solution.
02-02-2016 03:57 AM
If you use an event structure for it, you can have several events using the same event case.
If this VI is used as a dialog, you can configure multiple Value Change events from different UI sources for one event case (use the blue + Add Event button).
If this VI is a subvi, you will not be able to work like this as passing parameters does not fire the Value Change event....
Norbert
02-02-2016 04:39 AM
Another option is to place your "input controls" in a cluster (cluster borders can be hidden).
One Event case covers any change.
steve
02-03-2016 01:35 AM
I bundled the value changed event of all the input controls to one event case.
It works perfect, thanks.