Page 1 of 1

How to differentiate between alarms and events?

Posted: Sun Mar 25, 2018 5:36 am
by robertoaxt
I would like to write a code that every hour check for an unacknowledged Alarm and then send an email. But I can not differentiate between Alarms and Events. :shock:

How can I differentiate between alarms and events? :oops:

The function I had written is like this:

Code: Select all

function void hourlyAlarmCheck()
#STARTUP
    int maxEvent = GetTotalEvnGates();
    int i;
    string name;
    int id;
    while (true)
        for i = 0 to maxEvent-1 do
            name = GetEvnGateGateID(i);
            id = GetEvnGateNID(i);
            if(GetEvnGateValue(name, id) == true && GetEvnGateAckedStatus(name, id) == false) then
                  SendMailToGmail(GetEvnGateMsg(name, id));
                  MessageBox(GetEvnGateMsg(name, id),"mail"); //debuging
            end
        end
        Sleep(3600000); //1 hour check
    end
end

Thanks!!! :geek:

Re: How to differentiate between alarms and events?

Posted: Tue Mar 27, 2018 8:09 am
by admin
Hi,
actually is not possible. I entered your request in the list of future implementation.

Thanks and Best Regards