How to differentiate between alarms and events?

Discussion about Code Builder Builder and Winlog language support.
Post Reply
robertoaxt
Posts: 1
Joined: Sun Mar 25, 2018 5:25 am

How to differentiate between alarms and events?

Post 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:

User avatar
admin
Site Admin
Posts: 354
Joined: Tue Nov 17, 2009 1:18 pm

Re: How to differentiate between alarms and events?

Post by admin »

Hi,
actually is not possible. I entered your request in the list of future implementation.

Thanks and Best Regards

Post Reply