E1K_RTD_SetEngUnits

 

This function code is used to set contiguous RTD channel's engineering unit.

 

C/C++

int E1K_RTD_SetEngUnits ( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

WORD wEngUnit[ ]);

 

Visual Basic

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

wEngUnit

An array that stores the contiguous RTD channel's engineering unit, wEngUnit[0] represents the value of the starting channel. The values for normal channel are:

0=Celsius

1=Fahrenheit

2=Ohm

Others_return Illegal Data Value

 

The values for virtual channels are:

0=Celsius

1=Fahrenheit

Others_return Illegal Data Value

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.