DO2K_SetMode
This function code is used to set the mode for a specific channel.
C/C++
int DO2K_SetMode( int hConnection,
BYTE bytChannel,
WORD wMode);
Visual Basic
Declare Function DO2K_SetMode Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal wMode As Integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytChannel |
The specific channel to be set. |
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. |