E42_TC_SetSensorType
This function code is used to set the Sensor Type for contiguous channels.
C/C++
int E42_TC_SetSensorType( int hConnection,
BYTE bytSlot,
WORD wSensorType);
Visual Basic
Declare Function E42_TC_SetSensorType Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal iSensorType 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. |
wSensorType |
An array that stores the contiguous TC channel's sensor type, wSensorType[0] represents the value of all channel. The values for all channels are: 0=TYPE K 1=TYPE J 2=TYPE T 3=TYPE B 4=TYPE R 5=TYPE S 6=TYPE E 7=TYPE N 8=TYPE L 9=TYPE U 10=TYPE C 11=TYPE D 128=10uV Input, -78mV~78mV,10uV/count 129=1uV Input, -32.7mV~32.7mV,1uV/count 130=2uV Input, -65.5mV~65.5mV,2uV/count Others return Illegal Data Value |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |