SsiGetTemperatureUnit


Function

Get the currently set temperature unit.

Format

Ret = SsiGetTemperatureUnit ( Id , ChannelNo , &TemperatureUnit)

Parameters

Id [ C: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from SsiInit.

ChannelNo [ C: short ] [ Python: ctypes.c_short ]
Specify the channel number.

TemperatureUnit [ C: short * ] [ Python: ctypes.POINTER(ctypes.c_short ) ]
Specify the address of the variable that stores the temperature unit.

Return Value

Ret [ C: long ] [ Python: ctypes.c_long ]

Definition

Value

[Dec]

Description

SSI_ERR_SUCCESS

0

Succeeded

SSI_ERR_DLL_INVALID_ID

10001

Invalid device id.

SSI_ERR_DLL_CALL_DRIVER

10002

Can not call driver (ioctl failed).

SSI_ERR_DLL_BUFF_ADDRESS

10100

Invalid data buffer address.

SSI_ERR_SYS_CH_NO

20100

Channel No. is outside the setting range.

The others (See also: Details of Error Code)

Remarks

Get the currently set temperature unit (Celsius, Fahrenheit).

Example

Get the temperature unit set for Ch0.

C

long Ret;
short TemperatureUnit;
Ret = SsiGetTemperatureUnit(Id, 0 , &TemperatureUnit);
 

Python

Ret = ctypes.c_long()
TemperatureUnit = ctypes.c_short()

Ret.value = cssi.SsiGetTemperatureUnit(Id, 0 , ctypes.byref(TemperatureUnit))
 

See Also

SsiSetTemperatureUnit