AI2K_ReadMax

 

This function code is used to read the analog input maximize value for a specific channel.

 

C/C++

int AI2K_ReadMax( int hConnection,

BYTE bytChannel,

double * dValue);

 

Visual Basic

Declare Function AI2K_ReadMax Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, dValue As Double) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be read.

dValue

A pointer that stores the specific channel's analog input maximize value to be read. The unit is Vdc for the voltage module, and mA for the current module

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.