Hm_getmonitorwarninglevels, Syntax, Remarks – Rockwell Automation 6182 SDK User Manual
Page 82

4–42
RAC6182-Specific Extensions to the CE API
Publication 6182-UM002B-EN-P
hm_GetMonitorWarningLevels
This function gets warning levels for monitored parameter. It is
prototyped in HardwareMonitorAPI.h.
Syntax
#include
#include
BOOL hm_GetMonitorWarningLevels (DWORD dwMonitorID, double
*plfUpperWarningLevel, double *plfLowerWarningLevel)
Remarks
This function queries the current warning levels defined for the
parameter specified with dwMonitorID. Upper and lower warning levels
specify the upper and lower bounds of the monitored parameter during
normal operation. If the parameter deviates from the defined operating
bounds, it will enter the "warning state".
Power fail is special in that it only has a lower warning level.
lfUpperWarningLevel will be the value of the macro
MONITOR_WARNING_LEVEL_UNDEFINED.
Parameter
Description
dwMonitorID
ID of monitored parameter whose warning levels are
being set. monitored parameter can be specified.
Note that only one monitor ID can be specified.
Possible values are represented by macros defined
in HardwareMonitorAPI.h as follows:
MONITOR_ID_SUPPLY_3V
MONITOR_ID_SUPPLY_5V
MONITOR_ID_SUPPLY_12V
MONITOR_ID_SUPPLY_BATTERY
MONITOR_ID_TEMPERATURE_BOARD
MONITOR_ID_POWER_FAIL
plfUpperWarningLevel
Pointer to an application-allocated double-precision
floating point where the current upper limit value will
be written. The value represents volts or degrees
Celsius, depending on the specified parameter.
MONITOR_WARNING_LEVEL_UNDEFINED, a
macro defined in HardwareMonitorAPI.h, will be
written if the upper level bound has not been defined
and will not be used to determine if the monitor has
entered the warning state.