Cnt2K_SetPowerOnValue

 

This function code is used to set specific channel's power on value when D/I channel in 'Count' mode.

 

C/C++

int Cnt2K_SetPowerOnValue(int hConnection,

BYTE bytChannel,

BYTE bytValue);

 

Visual Basic

Declare Function Cnt2K_SetPowerOnValue Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal bytValue as Byte) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be clear.

bytValue

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.