E42_TC_ReadRaws

 

This function code is used to read the temperature raw data of contiguous channels.

 

C/C++

int E42_TC_ReadRaws( int hConnection,

BYTE bytSlot,

BYTE bytStartChannel,

BYTE bytCount,

DWORD wValue[ ]);

 

Visual Basic

Declare Function E42_TC_ReadRaws Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, iValue As Integer) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytSlot

Slot number of the I/O module. The Slot number ranges from 1 to 16. But this parameter is inactive in ioLogik 2000.

bytStartChannel

Specifies the starting channel.

bytCount

The number of channels to be read.

wValue

An array that stores the temperature value to read. The wValue[0] represents start channel 0. When the wValue is 0x8000, it means the sensor is not correctly wired. When the operating mode is temperature sensor, 0.1(). When the operating mode of the TC module is -78.0 ~ 78.0 mV, 10uV/count. When the operating mode of the TC module is -32.7 ~ 32.7 mV, 1uV/count. When the operating mode of the TC module is -65.5 ~ 65.5 mV, 2uV/count. Use ioAdmin to check the I/O module settings.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.