From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,116 Views)
Solution
Accepted by 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,107 Views)

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

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