E42_TC_GetEngUnit
This function code is used to get the temperature Type for contiguous channels.
C/C++
int E42_TC_GetEngUnit( int hConnection,
BYTE bytSlot,
WORD wEngUnit[ ]);
Visual Basic
Declare Function E42_TC_GetEngUnits Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, 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 get. The wEngUnit[0] represents the value of all channel. The values are: 0: Celsius 1: Fahrenheit |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |