E42_RTD_SetSensorType

 

This function code is used to set the Sensor Type for contiguous channels.

 

C/C++

int E42_RTD_SetSensorType( int hConnection,

BYTE bytSlot,

WORD wSensorType);

 

Visual Basic

Declare Function E42_RTD_SetSensorType Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal bytStartChannel As Byte, ByVal bytCount 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.

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=PT100

1=PT200

2=PT500

3=PT1000

4=PT50

16=JPT100

17=JPT200

18=JPT500

19=JPT1000

32=NI100

33=NI200

34=NI500

35=NI1000

48=NI120

64=CU10

128=1~2000 Ohm, 100 mohm/1 count

129=1~327 Ohm, 10 mohm/1 count

130=1~620 Ohm, 20 mohm/1 count

Others return Illegal Data Value

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.