TaskExecutionState Property |
Namespace: ABB.Robotics.Controllers.RapidDomain
public ExecutionState ExecutionState { get; }
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 }