This topic contains the following sections.
All frame grabbers have at least one output line, and may have several input lines. The hardware manual for your specific frame grabber contains details about how many and what kind of I/O lines are available. You can use these I/O lines to communicate between your application and the outside world.
Some Cognex frame grabbers are available in several configurations which are described in your frame grabber's hardware manual. VisionPro reads the I/O configuration from the VisionPro.ini in the Windows or WINNT directory. Make sure that the configuration described in this file matches your frame grabber.
To learn how Vision Pro software maps the input and output lines to the physical connections, see the following topics:
- Map I/O Signals: MVS-8500 with Opto-Isolated I/O Module
- Map I/O Signals: MVS-8500 with Opto-Isolated I/O Module and TTL
- Map I/O Signals: MVS-8500 with TTL I/O Module
- Mapping I/O Signals: MVS-8600 LVDS Configuration
- Mapping I/O Signals: MVS-8600 TTL Configuration
- Mapping I/O Signals: MVS-8600 DualLVDS Configuration
Use a frame grabber's InputLines and OutputLines properties to get its CogInputLines and CogOutputLines collections. Each item in these collections represents one CogInputLine or CogOutputLine.
The following example shows how to access the input lines of a frame grabber. You can find a more detailed example for an MVS-8504 in the the VisionPro sample programs: Program Files/Cognex/VisionPro/Samples/Programming/Acquisition/PIOAnd8504.
' Get a reference to the first frame grabber
Dim FGs As New CogFrameGrabbers
Dim FG As Cognex.VisionPro.ICogFrameGrabber
FG = FGs(0)
' Get its InputLines collection
Dim InputLines As CogInputLines
InputLines = FG.InputLines
' Iterate over the input lines and enable them
Dim InputLine As CogInputLine
For Each InputLine In InputLines
If InputLine.CanBeEnabled Then
InputLine.Enabled = True
End If
Next InputLine