|Download Help (Windows Only)|
ApplicationMgr.GetTerminationState ( exec)
Use the following constants with this data type:
Returns the termination state of an execution.
The value obtained from this method does not necessarily correspond to the value obtained from the Execution.GetStates method. The Execution.GetStates method returns the instantaneous state of the execution. This method returns the current state that the TestStand User Interface (UI) Controls display.
|Note When you write a user interface that uses TestStand UI Controls, National Instruments recommends using this method or the ExecutionViewMgr.TerminationState property 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 method returns to reflect the change. This occurs because the state this method returns does not change until TestStand processes the UIMessages involved, thus allowing for synchronization of the updates necessary for displaying an execution.|
exec As Execution
[In] Specifies the execution on which to operate.