Difference between revisions of "Alarm System for EPICS"

From GlueXWiki
Jump to: navigation, search
(Alarm Configuration Tool)
(Alarm Configuration Tool)
Line 22: Line 22:
 
=== Alarm Configuration Tool ===
 
=== Alarm Configuration Tool ===
  
* In <i>plugin_customization.ini</i> for <i>/org.csstudio.alarm.beast.configtool</i> I changed to  
+
* In <i>plugin_customization.ini</i> for <i>/org.csstudio.alarm.beast.configtool</i> I changed to
 
<pre>
 
<pre>
org.csstudio.alarm.beast/rdb_url=jdbc:mysql://localhost/alarm
+
  org.csstudio.alarm.beast/rdb_url=jdbc:mysql://localhost/alarm
org.csstudio.alarm.beast/rdb_user=alarm
+
  org.csstudio.alarm.beast/rdb_user=alarm
org.csstudio.alarm.beast/rdb_password=$alarm
+
  org.csstudio.alarm.beast/rdb_password=$alarm
 
</pre>
 
</pre>
the default was some Oracle type setup with different username amd password for SNS.
+
: the default was some Oracle type setup with different username amd password for SNS.

Revision as of 12:54, 22 December 2011

Intro

One of the most important components of the Hall D online monitoring will be the alarm system. Such a system should be configurable to annunciate in the control room and send e-mail messages in case EPICS variables severity changes. It is also very desirable to have an alarm system which can be integrated with the Controls System Studio (CSS).


BEAST

EPICS community developed an alarm system called Best Ever Alarm System Toolkit (BEAST) providing integration with CSS. This system consists of multiple components, and each component is built and configured from Eclipse RCP environment. Some of the component should run standalone, some of them are supposed to be built-in into the CSS executable, and some can used in both ways (Annunciator).

Compiling executables

The compilation of the executable is done in Eclipse RCP. I downloaded SNS source from the SNS web site, unzipped. Then I import the plugins from the source directory as existing project. Since we will be using MySQL databases I edited preferences.ini file in org.csstudio.alarm.beast to have "rdb_schema=" .

Alarm Server

  • Since the setting in the plugin_customization.ini overwrite the setting in preferences.ini I changed plugin_customization.ini in /org.csstudio.alarm.beast.server to have "org.csstudio.alarm.beast/rdb_schema=".

Then I used standard procedure with AlarmServer.product to create an executable.

Alarm Configuration Tool

  • In plugin_customization.ini for /org.csstudio.alarm.beast.configtool I changed to
  org.csstudio.alarm.beast/rdb_url=jdbc:mysql://localhost/alarm
  org.csstudio.alarm.beast/rdb_user=alarm
  org.csstudio.alarm.beast/rdb_password=$alarm
the default was some Oracle type setup with different username amd password for SNS.