DO2K_GetMode
This function code is used to get the mode for a specific D/O channel.
C/C++
int DO2K_GetMode( int hConnection,
BYTE bytChannel,
WORD * wMode);
Visual Basic
Declare Function DO2K_GetMode Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, iMode As Integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytChannel |
The specific channel to be get. |
wMode |
A pointer that stores the mode of specific D/O channel. The values are: 0: D/O mode 1: Pulse mode |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |