E1K_RTD_SetSensorTypes

 

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

 

C/C++

int E1K_RTD_SetSensorTypes ( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

WORD wSensorType[ ]);

 

Visual Basic

Declare Function E1K_RTD_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 (Reserve)

6=JPT200 (Reserve)

7=JPT500 (Reserve)

8=JPT1000 (Reserve)

9=NI100 (Reserve)

10=NI200 (Reserve)

11=NI500 (Reserve)

12=NI1000 (Reserve)

13=NI120 (Reserve)

14=310 Ohm

15=620 Ohm

16=1250 Ohm

17=2200 Ohm

Others return Illegal Data Value

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.