ScopeThis document is a user's manual for Alarm Handler Visual DCT Plugin. It contains instructions how to use the plugin. AudienceThe audience of this document are the users of VisualDCT who wish to use Alarm Handler plugin. Table of Contents1. Introduction2. Installing Alarm Handler Plugin3. Using Alarm Handler Plugin3.1. Basic principles of Alarm Handler Plugin3.2. Using Alarm Handler Plugin3.2.1. Adding and moving channels3.2.2. Adding/removing groups and other elements3.2.3. Editing tree items3.2.4. Include files3.2.5. File menuReferencesDocument HistoryHow to Read This DocumentThis document's meta-information (authors, revision history, table of contents, ...) can be found above. What follows below is the body of the document. The body is composed of several sections, which may be further composed of subsections. Typographical styles are used to denote entities of different kinds. For a full list of entities and their respective typographic conventions, please refer to the Styles section of the XML Documentation document. When viewing the document in a non-printed form, it is possible to submit comments regarding a given section to the document's owner. This is achieved by clicking the mail icon next to the section title. For this to work, your mail must be configured to properly handle the mailto URLs. 1. IntroductionAlarm Handler Visual DCT Plugin is an application plugin which enables creating and modifying EPICS Alarm Handler configuration files. Plugin allows user to organize configuration files, while displaying the whole hierarchical structure of the file that is currently being edited. 2. Installing Alarm Handler PluginAlarm Handler Visual DCT Plugin is a standard Visual DCT plugin, which can be installed like any other plugin. Refer to VisualDCT Plugins on how to install a Visual DCT plugin.
3. Using Alarm Handler Plugin3.1. Basic principles of Alarm Handler PluginAlarm Handler Plugin enables user to create and modify EPICS Alarm Handler configuration files. The plugin present a configuration file in a hierarchical view; this allows building a configuration file visually. Groups, channels and properties can be added to the tree structure according to the specifications of EPICS Alarm Handler (see EPICS Alarm Handler). The structure represented by the tree can be saved into Alarm handler configuration file or Alarm handler include file. The output data has a standard form specified by EPICS Alarm Handler. The Alarm Handler Plugin can be started by selecting the AlarmHandler start from the Plugins menu of the VisualDCT. When the plugin is started it should look similar to the figure 1.
Figure 1: New configuration file. Alarm Handler Plugin window at startup. There are 5 different types of items in the tree: channel, group, include, property and text. Each one of these items is represented by a different icon:
3.2. Using Alarm Handler Plugin3.2.1. Adding and moving channelsIn the figure 2 we see an instance of the Alarm Handler Plugin window.
Figure 2: An instance of Alarm Handler configuration file On the left side of the window there is a tree displaying the hierarchical structure of the Alarm handler configuration file. The ride side displays all available channels that are defined in currently opened database file in Visual DCT. These channels can be placed inside any group that is already defined in the tree. This can be done simply by dragging the channels to a desired location or by selecting a destination group in the tree and the channel in the list and pressing the add record to the tree button. To remove a channel from a certain group, select the channel and press remove record from the tree button, or drag the channel from the tree to the list on the right side. Moving a channel from one to another group can be done by dragging the channel and dropping it in the desired group.3.2.2. Adding/removing groups and other elementsAny element, specified in the EPICS Alarm Handler can be added to the hierarchical structure. To do this, select the element which will be the parent of the new element and press the right mouse button - a popup will appear (see figure 3). By choosing Add item a drop down menu is shown which lists all items that can be added to the selected parent. (e.g. to add a new group, select GROUP). After selection was made, the popup menu dissappears and the new element is added to tree. If the added element is GROUP or INCLUDE it appears as the last node of its parent, while other elements are added as the last property of the parent. Certain items like SEVRCOMMAND, STATCOMMAND etc. require additional values/commands. After the parent node (e.g. SEVRCOMMAND) was added, these commands should be added as well. Select the parent node in the tree and add those commands like it is described above. To remove an item from the tree, select Remove from the popup menu. This will remove the item from the tree. (CAUTION! Removal of an item cannot be reversed. Once an item was removed, the action cannot be undone.)
Figure 3: Adding elements to the tree GUIDANCE is another special element. Guidance can hold any text specified by the user. Each Guidance item in the tree presents a Guidance-End block in the configuration file. To insert the text in to the block, simply add TEXT items to the guidance node and type the text as a value of the text node. Each node will be represented by a single line in the configuration file. 3.2.3. Editing tree itemsCertain items can present a specific value. These values can be edited directly in the tree. Double-click the item, which value you want to change. A text editor will appear on that place and a new value can be written there. IMPORTANT! After a new value was typed in the editor you have to confirm it by pressing the enter key on your keyboard. This will store the value. If you click outside of the editor, the new value is not stored, but the old one is recalled. There are also specific items which require names. (e.g. each group or channel should have a specific name representing that item). If the item is group or channel the name is displayed as the string that represents the node in the tree. Similar to this the names of other properties are displayed together with the id of that property (see figure 4).
Figure 4: Editing tree elements can be done by a double-click Another type of items are those, which have a priori defined values. These are SEVRCOMMAND, STATCOMMAND and BEEPSEVERITY. When editing values of these properties, a combo box with all possible values is displayed (see figure 5). To change the value, select it from the box and confirm it by pressing the enter key.
Figure 5: Editing elements with a priori defined values Certain commands like COMMAND, ALIAS, BEEPSEVERITY etc. have to store only one value. This value can be defined on the node that represent that command. The string that is displayed in the tree is the command_id:value. 3.2.4. Include filesThe Alarm Handler Plugin can be used for editing .alhConfig as well as .alhInclude files. Include files can be edited the same way as config files only when saving data to a file, a different file extension should be choosen. How to include a file with the help of the popup menu refer to Adding/removing groups and other elements. When editing a configuration file each group can be exported to a selfstanding include file. Select the group that you want to export and select Export from the popup menu. A file chooser will appear on the screen; type in the name of the file and press Save button. When a group is exported it is replaced with INCLUDE item in the tree. Similar to exporting the included file can also be imported. To import an included file select the INCLUDE item in the tree and select Import from the popup menu (see figure 6). The existing INCLUDE item is replaced with the data from the included file. Beside the import option one can also choose Open from the popup menu as well. This will open another Alarm Handler Plugin window and the included file will be opened in that window.
Figure 6: Importing included files 3.2.5. File menuThe file menu provides five different commands:
Document History
References
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||