ExecutionViewMgr.TerminationState

Syntax

ExecutionViewMgr.TerminationState

Data Type

ExecutionTerminationStates

Use the following constants with this data type:

  • ExecTermState_Aborting –(Value: 4) TestStand is aborting the running execution.
  • ExecTermState_KillingThreads –(Value: 5) TestStand is ending the threads in the execution.
  • ExecTermState_Normal –(Value: 1) The execution is not terminating.
  • ExecTermState_Terminating –(Value: 2) TestStand is terminating the running execution.
  • ExecTermState_TerminatingInteractive –(Value: 3) TestStand is terminating the running interactive execution.

Purpose

Returns the termination state of the execution.

Remarks

The ExecutionView Manager control generates the ExecutionViewMgr.TerminationStateChanged event when this property changes. The value obtained from this property does not necessarily correspond to the value obtained from the Execution.GetStates method. The Execution.GetStates method returns the instantaneous state of the execution, while the ExecutionViewMgr.RunState property returns the current state the ExecutionView Manager control displays.

Note When you write a user interface that uses an ExecutionView Manager control, National Instruments recommends using the ExecutionViewMgr.RunState and ExecutionViewMgr.TerminationState properties instead of directly calling the Execution.GetStates method on the execution. A slight delay exists between when the instantaneous state of the execution changes and when TestStand updates the state this property returns to reflect the change. This occurs because the state this property returns does not change until TestStand processes the UIMessages involved, thus allowing for synchronization of the updates necessary for displaying an execution.

See Also

ApplicationMgr.GetTerminationState

Execution.GetStates

ExecutionViewMgr.RunState

ExecutionViewMgr.TerminationStateChanged