ICP DAS USA IM-100 User Manual

Page 80

Advertising
background image

IMC_InputPort_Read

Syntax:

Visual C++ 6.0 / Boland C++ Builder 6.0:

short IMC_InputPort_Read ( HANDLE Camera_Handle, int Input_Port, bool* pValue);

Visual Basic 6.0

_Read (ByVal Camera_Handle As Long, ByVal Input_Port As Long,

C#.NET 200

InputPort_Read( IntPtr Camera_Handle, int Input_Port, out bool

arameters:

e

The handle for MAVIS camera. Use the handle gotten from the

Input_Port

pValue

eturn:

UCCESSFUL Successfully

T

LL.

T

initialized.

T

IMC_InputPort

ByRef pValue As Boolean) As Integer

3

Mavis.IMC_

pValue );

Description:

This function reads the state for specific Input Port. The camera needs be initialized

with IMC_Camera_Init().

P

Camera_Handl

pHandle’ parameter of IMC_Camera_Init().

The Input Port to be read. The Ports can be:

INPUT_PORT_0 and INPUT_PORT_1

The pointer to the memory that contains state of the specific

Input Port.

R

ERROR_S

ERROR_INVALID_PORT

The invalid input port.

ERROR_CAMERA_CREATE

he Camera_Handle is NU

ERROR_DEVICE_UNINIT

he specific camera has not been

ERROR_INVALID_CAMERA

he handle is invalid.

-

80

-

Advertising
This manual is related to the following products: