Table of Contents

Advertisement

Serial Port

The Camera Link™ cabling specification includes a serial communication port for direct camera
control by the frame grabber. The PC2-CamLink supports this serial communication port either
directly or by mapping it to a host computer COM Port. Any serial port communication program, such
as Windows HyperTerminal, can connect to the camera in use and modify its function modes via its
serial port controls. Refer to the "Configuring Serial
how to map the PC2-CamLink serial port as a COM Port.
This serial port is intended for camera control.
The default name for this serial port is: PC2-CamLink_X_Serial_0, where X represents the PC2-
CamLink board number, valid from 1 to 8.
Note: A typical configuration would use 9600 baud, 8-bit, no parity, 1 stop bit (9600-8-N-1).
IFC
Note: The serial port is configured by the application that opens a connection to it. This means that if
you are accessing the serial port from HyperTerminal (or any similar program), the PC2-CamLink
serial port uses the settings of HyperTerminal, not ones from the Sapera or IFC parameters.
Note: The Camera Link™ standard specifies an API that can be used to access any serial port on a
CameraLink frame grabber. This API is available through a DLL. Under IFC, this DLL is called
clsercii.dll. Under Sapera, this DLL is called clsercor.dll. Refer to the Camera Link specification for a
description of this API.
PC2-CamLink User's Manual
Sapera parameters for Serial Port
In Sapera, the serial port is mapped as a regular COM Port. It can be configured through
WIN32 API.
IFC parameters for Serial Port
P_COM_PORT_NAME : String that specifies serial port name
P_COM_PORT_BYTESIZE = {IFC_COM_7BITS, IFC_COM_8BITS}
P_COM_PORT_BAUDRATE = {IFC_BAUD_4800, IFC_BAUD_9600,
IFC_BAUD_14400, IFC_BAUD_19200, IFC_BAUD_38400, IFC_BAUD_56000,
IFC_BAUD_57600, IFC_BAUD_115200, IFC_BAUD_128000}
P_COM_PORT_PARITY = {IFC_NOPARITY, IFC_ODDPARITY,
IFC_EVEN_PARITY}
P_COM_PORT_STOPBITS = {IFC_ONE_STOPBIT}
IFC uses those parameters to communicate with the serial port in the following two
cases:
when the application calls CICamera::WriteUartCommand().
when IFC uses the rule evaluation from the config file.
Port"
section
(on page 17)
Part I: PC2-CamLink Board • 41
for information on

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents