Returns the board temperature.
GxCalGetBoardTemperature (nHandle, nUnits, pdTemp, pnStatus)
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. |
Calling this function initiates a new temperature measurement.
The following example returns the board temperature in Celsius:
SHORT nHandle, nStatus;
PDOUBLE dTemp;
GxCalGetBoardTemperature (nHandle, GXCAL_TEMPERATURE_IN_CELSIUS, &dTemp, &nStatus);
GxCalGetDriverSummary, GxCalInitialize, GxCalGetErrorString