Technical FAQs

Ask a Question

Is there any cicode to delete Alarm Summary entries related to a particular Tag?

This cicode deletes all alarm Summary entries related to specified tag:

FUNCTION
SumDelTag(STRING sTag)
    INT Next;
    INT Index;
    STRING Name;
    Index=AlarmSumFirst();
    WHILE Index<>-1 DO
        Name=AlarmSumGet(Index,"Tag");
        Next=AlarmSumNext(Index);
        IF Name=sTag THEN
            AlarmSumDelete(Index);
        END
        Index=Next;
    END
END
Was this helpful?
What can we do to improve the information ?