LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic registration for events through front panel control reference

Solved!
Go to solution

No error and the VI server ref of the control seems to be valid. If have tested this by "not a number/path/refnum". The event is simply not fired, thats all.

 

I am loading and unloading the VIs frequently but the event registration is done once when my actor starts, since it controls an event loop parallel to its parent actor core.

 

 

0 Kudos
Message 11 of 13
(712 Views)

You are right, it has something to do with the loading of the VI. If I start the VI after I embed it the reference is funcional. This means unfortunately that the VI cannot be controlled by a loop that is parallel to the parental actor core. I will find something else.

 

Thanks a lot. I know now exactly how to avoid this problem.

0 Kudos
Message 12 of 13
(707 Views)

Here is another workaround that worked for me: set the front panel state to "Hidden" just before the event registration.

0 Kudos
Message 13 of 13
(593 Views)