LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Register Event Callback - Error 1001

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

Download All
0 Kudos
Message 1 of 4
(4,963 Views)
0 Kudos
Message 2 of 4
(4,946 Views)

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

0 Kudos
Message 3 of 4
(4,940 Views)
Check this out.
Shreyas Hebbare
Shreyas Technologies
India
0 Kudos
Message 4 of 4
(4,910 Views)