Cnt2K_GetPowerOnValue
This function code is used to get power on value when specific D/I channel in 'Count' mode.
C/C++
int Cnt2K_GetPowerOnValue(int hConnection,
BYTE bytChannel,
BYTE * bytValue);
Visual Basic
Declare Function Cnt2K_GetPowerOnValue Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, bytValue As Byte) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytChannel |
The specific channel to be get. |
bytValue |
A pointer that stores the power on value for specific channel. The values are : 0: OFF 1: ON |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |