TC_ReadRaw

 

This function code is used to read the temperature raw data for a specific channel.

 

C/C++

int TC_ReadRaw( int hConnection,

BYTE bytSlot,

BYTE bytChannel,

DWORD * wValue);

 

Visual Basic

Declare Function TC_ReadRaw Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal bytChannel 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 32. But this parameter is inactive in ioLogik 2000.

bytChannel

The specific channel to be read.

wValue

An pointer that stores the temperature value to read. When the wValue is 0x7fffffff, 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.