Cnt2K_GetOverflow

 

This function code is used to get overflow status when specific D/I channel in 'Count' mode.

 

C/C++

int Cnt2K_GetOverflow( int hConnection,

BYTE bytChannel,

BYTE * bytStatus);

 

Visual Basic

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

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be get.

bytStatus

A pointer that stores the overflow status for specific channel. The values are :

0: Normal

1: Overflow

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.