Click or drag to resize

TaskExecutionState Property

Gets the current execution state of the task.

Namespace:  ABB.Robotics.Controllers.RapidDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public ExecutionState ExecutionState { get; }

Property Value

Type: ExecutionState
Returns the ExecutionState.
Examples
This examples shows how the current execution state is retrieved.
using ABB.Robotics;
using ABB.Robotics.Controllers;
using ABB.Robotics.Controllers.RapidDomain;
...
Controller c = new Controller();
Task[] allTasks = c.Rapid.GetTasks();
Task firstTask = allTasks[0];
ExecutionState state = firstTask.ExecutionState;
if (state == ExecutionState.Started)
{
   // the task is executing, do something

}
else
{
   // do something else

}
See Also