TaskExecutionStateChanged Event |
Namespace: ABB.Robotics.Controllers.RapidDomain
public event ExecutionStateChangedEventHandler ExecutionStateChanged
using ABB.Robotics; using ABB.Robotics.Controllers; using ABB.Robotics.Controllers.RapidDomain; ... Controller c = new Controller(); Rapid r = c.Rapid; Task t = r.GetTask("T_ROB1"); t.ExecutionStateChanged += new ABB.Robotics.Controllers.RapidDomain.ExecutionStateChangedEventHandler(t_ExecutionStateChanged); private void t_ExecutionStateChanged(object sender, ABB.Robotics.Controllers.RapidDomain.ExecutionStateChangedEventArgs e) { if (e.ExecutionState == ExecutionState.Stopped) { // Do something } else { // ... } }