RunState Property (Read Only)

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

ExecutionViewMgr.RunState

Data Type

ExecutionRunStates

Use the following constants with this data type:

  • ExecRunState_Paused–(Value: 2) The execution is suspended.
  • ExecRunState_Running–(Value: 1) The execution is running.
  • ExecRunState_Stopped–(Value: 3) The execution has finished executing.

Purpose

Returns the run state of the execution.

Remarks

The ExecutionView Manager control generates the ExecutionViewMgr.RunStateChanged event when this property changes. The value this property obtains does not necessarily correspond to the value the Execution.GetStates method obtains. 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 ExecutionViewMgr.RunState and ExecutionViewMgr.TerminationState properties do not change until TestStand processes the UIMessages involved. Thus, use the ExecutionViewMgr.RunState and ExecutionViewMgr.TerminationState properties instead because these properties reflect what the user interface actually displays.


See Also

ApplicationMgr.GetRunState

Execution.GetStates

ExecutionViewMgr.RunStateChanged

ExecutionViewMgr.TerminationState

WAS THIS ARTICLE HELPFUL?

Not Helpful