NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

show terminating in progress text

The steps in my sequence take some time to execute, and when the user hits the Terminate button in the OI, there is no indication that the sequence is terminating while the current step is completing.

Ideally what I'd like to do is capture the TerminatingExecution UI message, and post a ProgressText UI message to update this indicator to say "Terminating...".  Another option would be to grey out the Terminate button after it is pressed.  If I could do both, that would be even better.

I've encountered a few problems though. The first is that when I capture the TerminatingExecution message and try to get a reference to the Thread property from the UIMessage reference, I get a null reference, so I can't post a UI message.  The second is that the TerminatingExecution message is actually thrown twice on a termination - once when the terminate button is pressed, and once after the sequence has finished terminating.  I can't find any way to distinguish between the two events, so even if I could post a UI message, I would be updating ProgressText with "Terminating..." not only when the sequence is terminating, but also after it has finished.  The last problem is that I can't find any feature in TestStand that lets me conditionally grey out the Terminate control, and I'm not sure how disabling it in LabVIEW would conflict with the enabling/disabling that TestStand does when a sequence starts and finishes.

I could create my own Status indicator and capturing the ProgressText messages myself in order to update it to say "Terminating..." in addition to the ProgressText messages, but I'm still left with the problem of the additional TerminatingExecution message after the sequence has finished.

Has anyone got a solution to this?
0 Kudos
Message 1 of 3
(3,134 Views)
I am not sure if what you are trying to do is to modify or create your own OI but I made a modification to the simple Labview OI to do the operation you are requesting.  Hope this helps.
 
0 Kudos
Message 2 of 3
(3,127 Views)
Thanks, that does exactly what I was looking for.
0 Kudos
Message 3 of 3
(3,122 Views)