SsiSetTemperatureUnit


Function

Set the temperature unit.

Format

Ret = SsiSetTemperatureUnit ( 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.c_short ]
Specify the temperature unit.

Definition

Value

[Dec]

Description

CSSI_TEMP_UNIT_C

0

Celsius

CSSI_TEMP_UNIT_F

1

Fahrenheit

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_SYS_CH_NO

20100

Channel No. is outside the setting range.

SSI_ERR_SYS_TEMP_UNIT

20103

Temperature unit is outside the setting range.

The others (See also: Details of Error Code)

Initial Value

Celsius (CSSI_TEMP_UNIT_C)

Remarks

Set the temperature unit (Celsius, Fahrenheit).

Example

Set the temperature unit for Ch0 to Celsius.

C

long Ret;
Ret = SsiSetTemperatureUnit(Id, 0 , CSSI_TEMP_UNIT_C);
 

Python

Ret = ctypes.c_long()
Ret.value = cssi.SsiSetTemperatureUnit(Id, 0 , CSSI_TEMP_UNIT_C)
 

See Also

SsiGetTemperatureUnit