Cnt2K_SetFilter

 

This function code is used to set specific channel's filter value when D/I channel in 'Count' mode.

 

C/C++

int Cnt2K_SetFilter( int hConnection,

BYTE bytChannel,

WORD wFilter,);

 

Visual Basic

Declare Function Cnt2K_SetFilter Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal iFilter As Integer) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be set.

wHiWidth

stored the filter value.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.