W5K_RLY_CurrentCntReads
This function code is used to get count value of contiguous D/O channels.
C/C++
int W5K_RLY_CurrentCntReads ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwValue[ ]);
Visual Basic
Declare Function W5K_RLY_CurrentCntReads Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, nValue As long) 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. |
wValue |
An array that stores the contiguous D/O channels relay count. wValue[0] represents the value of the starting channel. |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |