AlarmGetTotalCount

 

Gets the current number of active alarms.

 

int @AlarmGetTotalCount(int priority, int port);

 

Parameters

int priority: Priority filter (0~999, -1 retrieves alarms of all priorities without applying the filter.)

int port: Port number (-1 retrieves alarms from all ports without applying the filter.)

 

Return Value

Returns the number of alarms.

 

Example

count = @AlarmGetTotalCount(1, -1);
@sprintf(buf, "Current Total Alarm Count=%d", count);
@MessageBox(buf, "O.K", 0);

 

Description: Retrieves the number of active alarms with priority 1.

 

Version Information

Supported Version: 10.3.1 or higher

 

Related Helps

@AlarmEventConfirmAll()

@AlarmEventDeleteAll()

@AlarmGetEventCount()

@AlarmGetSoundFlag()

@AlarmGetTotalCount()

@AlarmListConfirm()

@AlarmListDelete()

@AlarmListGetCursor()

@AlarmListGetValue()

@AlarmListSetCursor()

@AlarmListSetFilter()

@AlarmListSetFilterPrepare()

@AlarmListSetFilterTimeFrom()

@AlarmListSetFilterTimeTo()

@AlarmSetSoundFlag()

@AlarmSoundConfirm()