DI2K_SetMode
This function code is used to set the mode of a specific D/I channel.
C/C++
int DI2K_SetMode( int hConnection,
BYTE bytChannel,
WORD wMode);
Visual Basic
Declare Function DI2K_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's connection. |
bytChannel |
The specific channel to be set. |
wMode |
A pointer that stores a specific D/I channel's mode. The values are: 0: D/I Mode 1: Count Mode |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |