Alarm distribution

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
hans gerritsen
Posts: 26
Joined: Fri Jan 20, 2012 12:55 pm

Alarm distribution

Post by hans gerritsen »

Hi,

I am working with a TxC panel trying to find a good solution for alarm distribution.

I am using the same application for several customers. But with alarm distribution every customer needs his own list of receivers. As long as this list is 'hard-coded' in the 'alarm distributor' I can't send an 'universal' application update to all customers. If there would be a way to read a list of receivers automatically from an external file while opening the application I would be much easier. I could send a standard application update to all customers and I could also do an update of only this file without having to update the whole application. Is this possible?

The subject field of the e-mail device properties would likely to be different for each customer. Is it possible to use a tag for this field?

While doing I/O testing, I don't want all the alarms to be distributed.
Is it possible to disable/enable the email/sms-distribution by a tag?

Best regards

Hans

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Alarm distribution

Post by mark.monroe »

Hi Hans,

You can edit the AlarmDistributor.xml and the AddressBook.xml file and then replace them in the project files you send out. You can have a different one for each customer. The files are relatively simply xml, and you should be able to figure them out by simply opening them up in a text editor.

There is no way to put a tag text into an email, unless you create the email yourself using a script. There is a demo project called "Script_email" that is part of the samples that come with iX. Those can be found on the "Samples" tab right next to the "Recent Projects" tab in the dialog box that comes up when you first open iX.

You can enable/disable all your alarms using a tag here:
Snap 2012-07-17 at 10.52.10.jpg
Snap 2012-07-17 at 10.52.10.jpg (48.07 KiB) Viewed 9333 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

hans gerritsen
Posts: 26
Joined: Fri Jan 20, 2012 12:55 pm

Re: Alarm distribution

Post by hans gerritsen »

Thanks a lot!

I presume the whole alarmserver is disabled with the tag you mentioned. I would rather just disable the distribution but I don't think that is possible with a single tag.

Hans

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Alarm distribution

Post by mark.monroe »

Hi Hans,

The "Tag to enable/disable alarms" setting in the alarm server disables the distribution of all alarms. You can also programatically enable/disable distribution of alarm groups if you want via the below alarm group property.


Code: Select all

//Default1 is an alarm group
Globals.AlarmServer.Default1.EnableDistribution = false;
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply