NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Callback not running when expected

Solved!
Go to solution

I have a callback assigned to "EndExecution" that is running the following code:

Snippet.png

The "Execution Closed" message is simply there so I know when it is running. I expect this callback to run when the execution of the current sequence finishes. However it seems to be running after a user has been logged in. I have triple checked and i'm registering the above code to run under these conditions:

Snippet.png

Is there something I am not understanding? I use callbacks for user login/logout and they execute correctly

0 Kudos
Message 1 of 3
(2,102 Views)
Solution
Accepted by topic author Lbee11

The reason it comes up after the user logs in is because of the Front End Callback execution ending.

 

If you unbundle the event data you should be able to see what the execution ID is.  You can compare that against the execution id of your NewExecution and only close it if they match.  Otherwise do nothing.

 

Just a thought.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(2,093 Views)

Thank you, I misunderstood "EndExecution" to mean end of the sequence execution, not any execution.

0 Kudos
Message 3 of 3
(2,090 Views)