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: 

message popup cancel button

Hi
I am using the message popup step in TestStand in the beginning of my sequence. I defined 2 buttons - "OK" button and "Cancel" button.
The "OK" button works fine but the "Cancel" button does not function as desired - pressing it still runs the sequence while I want it to cancel or goto the end of the sequence.
Please advice me on how to configure it.
Attached is a screen shot of my configuration.
Thanks,
Moshik
0 Kudos
Message 1 of 2
(5,159 Views)
All that you've done is define some text for a button. It's without meaning if you don't write some code that handles the actual button pressed. Look at the answer by paul in the post http://forums.ni.com/ni/board/message?board.id=330&message.id=14038. A simple expression to use would be Step.Result.ButtonHit==1?True:False. Then, on the False condition, set the destination to <End>.
Message 2 of 2
(5,154 Views)