LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Callback from a Reentrant VI Recursion Error

Greetings,

I am using Register Event Callback with an ActiveX object to respond to user mouse events. The problem is that when I run the VI (the main, calling vi) as reentrant, Labview gives an error that the "Callback.vi" is attempting to recursively call "Main.vi".

Is there a way around this problem? I intend to run two copies of "Main.vi", so reentrant execution seems necessary.

- Colin Holbrook
0 Kudos
Message 1 of 2
(2,225 Views)
Hi Colin,
 
Are you placing the Register Event Callback inside of the Main VI and then wiring the same Main VI to the VI Reference terminal?  If so, then that explains why you are getting an error.  You cannot use the Register Event Callback to call a VI within itself.  If this is not the case, then please post a simple VI that demonstrates the problem. 
0 Kudos
Message 2 of 2
(2,198 Views)