09-22-2009 05:52 AM
Hi,
in the block diagram of my custom OI i register few event callbacks (ExitApplication, EndExecution, StartExecution, Trace) just to allow operations on the OI itself.
All callback VIs are called when respective event is fired except the callback VI linked to trace event. I infer that the event is not fired.
Considering that i explicitly set TracingEnabled on, i'm wondering why the callback VI is not called and how i could solve this problem.
Thanks!
09-23-2009 12:54 AM
Hi,
Have you tried enabling it after the callback has been registered?
regards
Ray
09-24-2009 09:24 AM
Thanks Ray.
I was wrong. The event is fired even if i enable it before the callback VI registration.
The problem was that, just to discover if the callback VI was called, i put some code in its block diagram that would have changed the state of a boolean control placed on its front panel, every time the callback VI was called.
Apparently this is not allowed and the boolean didn't change its state.
I solved linking the code in the callback VI to a boolean placed on another front panel (in this case on the main VI one). In this way i succeded whatching the boolean state change.