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 for terminate-button-pressed available?

Solved!
Go to solution

Hello,

is there a way to create a callback-sequence that automatically executes when i press the terminate-button to stop the sequence?

In this sequence i want to turn off the instruments.

Thanks for help

0 Kudos
Message 1 of 3
(3,519 Views)
Solution
Accepted by topic author OnlyOne

As "Terminate" still executes all steps of the Cleanup step groups (up until the process model), you should place the uninitialization of instruments into that step group.


The reason is that you don't bind that security feature to a specific GUI. The security feature will also work in the NI TestStand Sequence Editor or any other GUI you are using to run your sequence(s).

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(3,518 Views)

I tried this but it is not working.

I put a Popup in Cleanup. But when i press "terminate" / "terminate all" then cleanup is not executing.

Whats wrong here?

 

Edit: Its working...

 

Thx

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