AI2K_SetChannelStatus
This function code is used to set the AI channel status of ioLogik 2000 Module.
C/C++
int AI2K_SetChannelStatus ( int hConnection,
BYTE bytChannel,
WORD wValue);
Visual Basic
Declare Function AI2K_SetChannelStatus Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal iValue As Integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytChannel |
The specific channel to be set. |
wValue |
represents the value of the starting channel. 0: disabled, 1: enabled |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |