NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Trace event is not fired!

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!

0 Kudos
Message 1 of 3
(3,424 Views)

Hi,

 

Have you tried enabling it after the callback has been registered?

 

regards

Ray

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,401 Views)

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.

0 Kudos
Message 3 of 3
(3,381 Views)