RTD2K_SetSensorTypes

 

This function code is used to set contiguous RTD channel's sensor type.

 

C/C++

int RTD2K_SetSensorTypes ( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

WORD wSensorType[ ]);

 

Visual Basic

Declare Function RTD2K_SetSensorTypes 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 set.

wSensorType

An array that stores the contiguous RTD channel's sensor type, wSensorType[0] represents the value of the starting channel. 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.