DioGetOverTemperatureStatus

Applies To

GX5295

Purpose

Returns the over temperature flag state.

Syntax

DioGetOverTemperatureStatus (nHandle, pdwOverTemp, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Board or File board handle.
pdwOverTemp
PDWORD
Over temperature flag state:
0.  No channel had an over temperature condition.
1.  One or more channels had an over temperature condition.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

All channels over temperature flag are ORed together to generate the over temperature flag state. If one or more channels had an over temperature condition the functions returns a ‘1’. The actual temperature of each channel can be measure by calling the DioMeasure function.

Example

The following example returns over temperature flag:

 

DWORD dwOverTemp;

DioGetOverTemperatureStatus (nHandle, &dwOverTemp, &nStatus);

 

See Also

DioMesure, DioGetErrorString