TC2K_GetSensorTypes
This function code is used to get contiguous TC channel's sensor type.
C/C++
int TC2K_GetSensorTypes ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wSensorType[ ]);
Visual Basic
Declare Function TC2K_GetSensorTypes Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, iSensorType As integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytStartChannel |
Specifies the starting channel. |
bytCount |
The number of channels to be get. |
wSensorType |
An array that stores the contiguous TC channel's sensor type, wSensorType[0] represents the value of the starting channel. The values for normal channel 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. |