Hm_setmonitorwarninglevels – Rockwell Automation 2711P Software Development Kit User Manual User Manual
Page 63
Publication 2711P-UM005A-EN-P - March 2007
PanelView Plus CE-Specific Extensions to the WinCE API 63
Remarks:
Note that monitor parameters will vary with time, and may oscillate
about a defined upper or lower warning level for a short period.
Therefore, when a warning state event has been triggered, the calling
application should poll the warning status of any monitor sources of
concern (using hm_GetMonitorWarnings) to ensure that the monitor
source remains in a warning state before acting. Note also that to
avoid oscillating events, due to lots of input hysteresis, the hardware
monitor driver will not signal an event when a monitor source leaves
the warning state. Applications must poll the device’s warning state to
determine when/if it resumes normal operation.
Portability:
The function prototype is the same as the RAC6182. However, the
MONITOR _ID parameters are different between the platforms.
Requirements:
hm_SetMonitorWarningLevels
This function sets the high and low warning levels for a specific
monitored parameter.
BOOL hm_SetMonitorWarningLevels (DWORD dwMonitorID,
DOUBLE IfUpperWarningLevel, DOUBLE IfLowerWarningLevel);
Parameters:
dwMonitorID
A value from Table .
lfUpperWarningLevel
Double precision floating-point value that defines the upper bound of
the monitor parameter during normal operation. If
MONITOR_WARNING_LEVEL_UNDEFINED is specified, the upper
bound is undefined and not used to determine if the parameter enters
the warning state. This is a requirement for some parameters. See
Remarks.
Runs On
Version
Defined In
Link To
PanelView Plus CE
RAC6182
All
HardwareMonitorAPI.h
HardwareMonitor.lib