TC2K_GetSensorType

 

This function code is used to get the sensor type for a specific TC channel.

 

C/C++

int TC2K_GetSensorType( int hConnection,

BYTE bytChannel,

WORD * wSensorType );

 

Visual Basic

Declare Function TC2K_GetSensorType Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, iSensorType As integer) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be get.

wSensorType

A pointer that stores the specific TC channel's sensor type. The values for normal channels are:

0=J Type

1=K Type

2=T Type

3=E Type

4=R Type

5=S Type

6=B Type

7=N Type

8=Voltage 78.126mV

9=Voltage 39.062mV

10=Voltage 19.532mV

Others return Illegal Data Value

 

The values for virtual channels are:

20=AVG

21=DIV

Others return Illegal Data Value

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.