Queries the current temperature of a board.
DWORD cdiReadThermometer ( CTAHD ctahd, DWORD tid, DWORD *temp)
|
Argument |
Description |
|
ctahd |
Context handle. |
|
tid |
Thermometer ID (0,1,2,3,4). |
|
temp |
Pointer to the current temperature in degrees Celsius. |
|
Return value |
Description |
|
SUCCESS |
|
|
CTAERR_BAD_ARGUMENT |
Argument is not in the valid range. |
|
CTAERR_BOARD_ERROR |
Sensor is not installed or is not working. |
|
CTAERR_INVALID_CTAHD |
Handle is invalid. |
An application can query the exact board temperature at any time by invoking cdiReadThermometer with the number of a thermometer to check. (A board has five thermometers, 0 through 4.) The function returns the exact current temperature measured by the thermometer in degrees Celsius. Once the system is powered on, the system temperature takes approximately one hour to stabilize.
Refer to Monitoring board temperature for more information.