DO2K_GetModes
This function code is used to get the mode of contiguous D/O channels.
C/C++
int DO2K_GetModes( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wMode[ ]);
Visual Basic
Declare Function DO2K_GetModes 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 gets. |
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. |