From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I have created a subvi with an Event structure based on a "Value change". If I am using this subvi in a main vi the Event structure it is not executed at all. Why is that happening? Is there any solution, so that I can use this structure.
The value change event does not happen whenever the value changes. It is only fired if the user changes the value of the control. It can also be fired by using the Value (Signaling) property for the control.
In general, you should not use event structures which wait for user events in VIs which don't have their front panels open (unless you know what you're doing).
I would definately follow tst's advice regarding where to use event
structures, but it sounds like your problem might be that you are
trying to control a value change event in a subvi for a
control/indicator on the front panel. If this is the case, use
references and the property node's value property to update real time
the associated control/indicator in the sub vi.