RTD2K_SetSensorType
This function code is used to set the sensor type for a specific RTD channel.
C/C++
int RTD2K_SetSensorType( int hConnection,
BYTE bytChannel,
WORD wSensorType);
Visual Basic
Declare Function RTD2K_SetSensorType Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal iSensorType As integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytChannel |
The specific channel to be set. |
wSensorType |
A pointer that stores the specific RTD channel's sensor type. The values for normal channels are: 0=PT50 1=PT100 2=PT200 3=PT500 4=PT1000 5=JPT100 6=JPT200 7=JPT500 8=JPT1000 9=NI100 10=NI200 11=NI500 12=NI1000 13=NI120 14=310 Ohm 15=620 Ohm 16=1250 Ohm 17=2200 Ohm 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. |