TC2K_GetEngUnit

 

This function code is used to get the engineering unit for a specific TC channel.

 

C/C++

int TC2K_GetEngUnit ( int hConnection,

BYTE bytChannel,

WORD * wEngUnit );

 

Visual Basic

Declare Function TC2K_GetEngUnit Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, iEngUnit As integer) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be get.

wEngUnit

A pointer that stores the specific TC channel's engineering unit. The values for normal channels are:

0=Celsius

1=Fahrenheit

2=Millivolt

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.