Execution.GetStates

Syntax

Execution.GetStates( runState, termState)

Purpose

Returns the current state of the execution.

Remarks

Note When a user interface that uses TestStand UI Controls needs to obtain the state of the execution, National Instruments recommends using the ApplicationMgr.GetRunState method or the ExecutionViewMgr.RunState property instead of directly calling the Execution.GetStates method on the execution.

Parameters

runState As ExecutionRunStates

[Out] Returns the running state of the execution.

termState As ExecutionTerminationStates

[Out] If the execution is terminating, this value indicates how it is terminating.

See Also

ApplicationMgr.GetRunState

Execution.CancelTermination

Execution.GetTerminationMonitorStatus

Execution.InitTerminationMonitor

ExecutionRunStates

ExecutionTerminationStates

ExecutionViewMgr.RunState