ICP DAS USA IM-100 User Manual

Page 79

Advertising
background image

IMC_OutputPort_Write

Syntax:

Visual C++ 6.0 / Boland C++ Build

short IMC_OutputPort_

nt Output_P

er 6.0:

Write ( HANDLE Camera_Handle, i

ort, bool

IMC_OutputPort_Write (ByVal Camera

al Output_Port As Long,

ByVal bValue As Boolean) As Integer

C#.NET 2003

Mavis.IMC_OutputPort_Write( IntPtr Camera_Handle, int Output_Port, bool bValue );

Description:

This function sets the state for specific Output Port. This function is workable only for

the Output Ports that are configured to USER_SET_SIGNAL .The camera needs be

initialized with IMC_Camera_Init().

Parameters:

Camera_Handle

The handle for MAVIS camera, use the handle gotten from the

pHandle’ parameter of IMC_Camera_Init().

Output_Port

The Output Port to be set. The Ports can be:

OUTPUT_PORT_0, OUTPUT_PORT_1, OUTPUT_PORT_2

and OUTPUT_PORT_3

bValue

The state for specific Output Port.

Return:

ERROR_SUCCESSFUL Successfully

ERROR_INVALID_PORT

The invalid output port.

ERROR_CAMERA_CREATE

The Camera_Handle is NULL.

ERROR_DEVICE_UNINIT

The specific camera has not been initialized.

ERROR_INVALID_CAMERA

The handle is invalid.

ERROR_NOT_USERSET_MODE The Output Port is not configured as

USER_SET_SIGNAL.

bValue);

Visual Basic 6.0

_Handle As Long, ByV

-

79

-

Advertising
This manual is related to the following products: