GetDiscreteOutputDelay

Returns delay settings that are configured in the Output Details dialog. For more information, see Configure Discrete Output Details.

GetDiscreteOutputDelay Inputs

Syntax: EV GetDiscreteOutputDelay(LineID,[Model])

Parameter Description
LineID The output line number.

IOModule

IOModule is an optional parameter that can be used to return the Discrete Output Delay for a specific I/O Module type.

  • 0 = Direct I/O / CIO-1350
  • 1 = CIO-1450 and CIO-1460
  • 2 = CIO-1400
  • 3 = CIO-MICRO and CIO-MICRO-CC

GetDiscreteOutputDelay Outputs

Output Description
Type
  • 0 = None
  • 1 = Acquisition Delay
  • 2 = Time After Trigger
Delay
  • If Type = 0, Delay is ignored and forced to 0.
  • If Type = 1, Delay returns the number of acquisition or tracking pulses (0 to 1000) that the output is delayed after a signal pulse is received by an output Line. If this value is 0, then the In-Sight vision system updates the output line immediately on evaluating the WriteDiscrete function. If this value is > 0, then the output Line is always pulsed.
  • If Type = 2, Delay returns the amount of time (0 to 10000 ms) before the output is fired.

GetDiscreteOutputDelay Example

To retrieve the delay settings for Line 3 for a CIO-MICRO I/O Module, issue the following command: EV GetDiscreteOutputDelay(3,3)

The In-Sight vision system responds with a status code (1), followed by the number of characters, in bytes (85). Finally, the Type (Time After Trigger) and the Delay (250 ms) are returned.