Removes all pending results from the Latch queue for a specified robot.
Latch.Flush(robot )
Prerequisites
Requires that the Encoder Latching or Advanced Controls or Conveyor Tracking License be installed on the controller.
Parameters
robot
An optional numeric expression that specifies the robot queue to be accessed. If not specified, a default value of 1 is assumed.
Remarks
This property removes all Latch result objects from the specified robot queue. It also resets any pending overflow errors for that queue. After calling this method, the Latch.Count property for the queue will be 0, until new latches occur.
Examples
Latch.Flush(1)
Console.WriteLine("Latch results: " & CStr(Latch.Count(1)))
' Displays value of 0
See Also