Click or drag to resize

TaskTaskType Property

Gets the type of the current task.

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

Property Value

Type: TaskType
Returns the TaskType.
Examples
This examples gets the type of the current task.
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];
TaskType type = firstTask.TaskType;
if(type == TaskType.Normal)
{
 // it´s a normal task, do something

}
else if(type == TaskType.Static)
{
 // it´s a static task, do something

}
See Also