GxCalGetBoardTemperature

Purpose

Returns the board temperature.

Syntax

GxCalGetBoardTemperature (nHandle, nUnits, pdTemp, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1164 board.
nUnits
SHORT
Retuned temperature unite are:
GXCAL_TEMPERATURE_IN_CELSIUS: temperatures are in Celsius.
GXCAL_TEMPERATURE_IN_FAHRENHEIT: temperatures are in Fahrenheit.
pdTemp
PDOUBLE
Returned measured board temperature.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Calling this function initiates a new temperature measurement.

Example

The following example returns the board temperature in Celsius:

 

SHORT nHandle, nStatus;

PDOUBLE dTemp;

GxCalGetBoardTemperature (nHandle, GXCAL_TEMPERATURE_IN_CELSIUS, &dTemp, &nStatus);

 

See Also

GxCalGetDriverSummary, GxCalInitialize, GxCalGetErrorString