Cnt2K_Read

 

This function code is used to read the count value when specific D/I channel in 'Count' mode.

 

C/C++

int Cnt2K_Read( int hConnection,

BYTE bytChannel,

DWORD * dwValue);

 

Visual Basic

Declare Function Cnt2K_Read Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, nValue As Long) As Long

 

Arguments:

hConnection

The handle for an I/O device's connection.

bytChannel

The specific channel to be read.

dwValue

A pointer that stores the count value for specific channel.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.