CogPrioEventResponseLine Constructor (CogPrioBankConstants, Int32, CogPrioOutputLineValueConstants, Double, CogPrioDelayTypeConstants, Double)Cognex VisionPro 9.5
Construct a new automatic output line response to an i/o event

Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax

public CogPrioEventResponseLine(
	CogPrioBankConstants outputLineBank,
	int outputLineNumber,
	CogPrioOutputLineValueConstants outputLineValue,
	double pulseDuration,
	CogPrioDelayTypeConstants delayType,
	double delayValue
)

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

ExceptionCondition
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