CAmvAlarm::curr_stacked

If an alarm happens multiple times before it is acknowledged by an operator, the instances of the alarm may be "stacked" so that the history of the alarm may be viewed.

This field contains the current number of stacked alarms.

Syntax

CAmvAlarm* alarm_ptr;

alarm_ptr->curr_stacked;

Data Type

COR_I1

Example

This example prints an alarm messages and, if there are any stacked alarms, it prints the number of stacked alarm instances.

CAmvAlarm* alarm_ptr;

_tprintf(_T("%s"), alarm_ptr->->stacked_data[0].alarm_msg);

if (alarm_ptr->curr_stacked > 1) {

   _tprintf(_T(" (%d)"), alarm_ptr->curr_stacked);

}

_tprintf(_T("\n"));

See Also

CAmvAlarm::stacked_data

More information

CAmvAlarm Class member overview.