E1K_DO_SetModes
This function code is used to set the mode of contiguous D/O channels.
C/C++
int E1K_DO_SetModes( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wMode[ ]);
Visual Basic
Declare Function E1K_DO_SetModes Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, iMode As Integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytStartChannel |
Specifies the starting channel. |
bytCount |
The number of channels to be set. |
wMode |
An array that stores the mode of contiguous D/O channels. The values are: 0: D/O mode 1: Pulse mode |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |