Construct a new automatic output line response to an i/o event
Namespace: Cognex.VisionPro.CommAssembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 73.0.0.0 (73.0.0.0)
Syntax
Parameters
- outputLineBank
- Type: Cognex.VisionPro.Comm CogPrioBankConstants
The bank of the output line which responds to the event
- outputLineNumber
- Type: System Int32
The index of the output line which responds to the event
- outputLineValue
- Type: Cognex.VisionPro.Comm CogPrioOutputLineValueConstants
The value that is set to the output line when the event occurs
- pulseDuration
- Type: System Double
How long to pulse the output line when the event occurs
- delayType
- Type: Cognex.VisionPro.Comm CogPrioDelayTypeConstants
Controls if the response occurs immeadiatly after the event or after some amount of delay
- delayValue
- Type: System Double
Controls how long after the event the response occurs
Exceptions
| Exception | Condition |
|---|---|
| CogPrioInvalidBankException | Thrown if outputLineBank is set to an invalid bank. |
| CogPrioInvalidLineException | Thrown if outputLineNumber is set to an invalid line number. |
| NotImplementedException | Thrown if delay type is set to Encoder or EventCount. |
| ArgumentOutOfRangeException | Thrown if pulse duration is less than 0.0 or greater than the maximum valid pulse width. |
See Also