E42_TC_SetEngUnit

 

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

 

C/C++

int E42_TC_SetEngUnit( int hConnection,

BYTE bytSlot,

WORD wEngUnit);

 

Visual Basic

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

wEngUnit

An array that stores the contiguous A/O channel's safe action to be set. The wEngUnit[0] represents the value of allchannel. The values are:

0: Celsius

1: Fahrenheit

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.