12-09-2009 07:21 AM
Hello Everyone,
I am trying to use register event callback to process a control's value change events that occur in another instance of LabVIEW. For example, from a LV executable, I dynamically run a VI (force it to open it in IDE using localhost application reference) and when a specific control in that VI changes value, I want to trigger some events in the executable.
I have attached 3 VIs - Call Update.vi is the top level. When I run this VI, I get error 1001 - VI Front panel is not open.
When I delete the application reference going into the open VI reference function, the event is getting registered without error.
Am I missing something in the code or I cannot use register event callback like this? Ultimately I want to include the code in Call Update.vi in my executable and make it run from there.
Thanks,
Saranya
12-09-2009 11:40 PM
12-10-2009 12:04 AM
Hi muks,
Thanks for referring to that link. But that doesn't solve the issue. VI front panel is definitely open and it is also waiting to run.
Everything runs fine if I do it in the same application instance. In IDE, I dynamically open the VI, take a control reference from this VI, register for event callback works fine. While in an executable, dynamically open the VI, register for events, and that works fine.
Problem arises only when I try to force open the dynamic VI in IDE from my executable. Actually when I try to do the same being in the IDE itself doesn't work too (force open the dynamic VI with localhost application reference)
I can post a screenshot of the Call Update VI here if you want.
Thanks,
Saranya
12-10-2009 11:36 PM