CogPrio SetOutputs Method (CogPrioBankConstants, Int64, Int64)Cognex VisionPro 9.8
Set multiple output lines at the same time.

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

public void SetOutputs(
	CogPrioBankConstants outputBank,
	long valuesToSet,
	long mask
)

Parameters

outputBank
Type: Cognex.VisionPro.Comm CogPrioBankConstants
The I/O bank of the output lines to set.
valuesToSet
Type: System Int64
The values to set as an integer. The 0th bit represents output line 0, The 1st bit represents output line 1, and so on... Bits greater than the number of lines in the bank are ignored. 1 is "high", 0 is "low".
mask
Type: System Int64
A mask. Controls which bits/lines in values argument are set (mask = 1) and which bits/lines in values argument are ignored (make = 0).
Exceptions

ExceptionCondition
CogPrioInvalidBankException Thrown if outputBank is set to an invalid bank.
Remarks

Hardware platforms and supported I/O lines:

Cognex Communication Card 24C
InputBank0, Line0-Line78 general purpose inputs numbered 0-7
OutputBank0, Line0-Line1516 general purpose outputs numbered 0-15

Cognex Communication Card 24A (Cognex Vision Controller)
InputBank0, Line0-Line78 general purpose inputs numbered 0-7
OutputBank0, Line0-Line1516 general purpose outputs numbered 0-15
DS1000OutputBank0, Line0Camera 0 Enable (Not For Application Use)
DS1000OutputBank0, Line1Camera 1 Enable (Not For Application Use)
DS1000OutputBank0, Line2Camera 0 Trigger
DS1000OutputBank0, Line3Camera 1 Trigger
DS1000OutputBank0, Line4Camera 0 Control (Not For Application Use)
DS1000OutputBank0, Line5Camera 1 Control (Not For Application Use)
DS1000OutputBank0, Line6Camera 0 Power (Not For Application Use)
DS1000OutputBank0, Line7Camera 1 Power (Not For Application Use)

See Also