DI2K_SetFilter
This function code is used to set the filter of a specific D/I channel.
C/C++
int DI2K_SetFilter( int hConnection,
BYTE bytChannel,
WORD wFilter);
Visual Basic
Declare Function DI2K_SetFilter Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal wFilter As Integer) As Long
Arguments:
hConnection |
The handle for an I/O device's connection. |
bytChannel |
The specific channel to be set. |
wFilter |
A pointer that stores a specific D/I channel's filter value. |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |