+ All Categories
Home > Documents > Control System Studio Training - Hierarchical Preferences

Control System Studio Training - Hierarchical Preferences

Date post: 29-Jan-2016
Category:
Upload: ban
View: 47 times
Download: 0 times
Share this document with a friend
Description:
Control System Studio Training - Hierarchical Preferences. Kay Kasemir ORNL/SNS [email protected] Jan. 2013. Preference GUI. Menu Edit , Preferences Not too hard to find Maybe consult associated Help , Help Content. Issue 1: What ’ s best for each user?. Download CSS - PowerPoint PPT Presentation
12
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS [email protected] Jan. 2013 Control System Studio Training - Hierarchical Preferences
Transcript
Page 1: Control System Studio Training - Hierarchical Preferences

Managed by UT-Battellefor the Department of Energy

Kay Kasemir

ORNL/SNS

[email protected]

Jan. 2013

Control System Studio Training

-Hierarchical Preferences

Page 2: Control System Studio Training - Hierarchical Preferences

2 Managed by UT-Battellefor the Department of Energy

Preference GUI Menu Edit,

Preferences– Not too hard to find

– Maybe consult associatedHelp, Help Content

Page 3: Control System Studio Training - Hierarchical Preferences

3 Managed by UT-Battellefor the Department of Energy

Issue 1: What’s best for each user?

1. Download CSS

2. Run

1. Download CSS

2. Set EPICS address list

3. Configure email server

4. Disable BOY editing

5. Add archive data sources

6. …

7. Run

Page 4: Control System Studio Training - Hierarchical Preferences

4 Managed by UT-Battellefor the Department of Energy

Issue 2: What about GUI-less tools?

Archive Engine, Alarm Server, Scan Server, … don’t have a GUI.

No Edit/Preferences…

So how do the CSS (Eclipse)preferences work?

Page 5: Control System Studio Training - Hierarchical Preferences

5 Managed by UT-Battellefor the Department of Energy

Eclipse “Product”

Page 6: Control System Studio Training - Hierarchical Preferences

6 Managed by UT-Battellefor the Department of Energy

Hierarchical Preferences

1. Code inside plugin

2. Plugin’s preferences.ini

3. Product’s plugin_customization.ini

4. Command-line

Page 7: Control System Studio Training - Hierarchical Preferences

7 Managed by UT-Battellefor the Department of Energy

1. Code inside plugin

Would have to edit source code, recompile, …

Page 8: Control System Studio Training - Hierarchical Preferences

8 Managed by UT-Battellefor the Department of Energy

2. Plugin’s preferences.ini

Documents the available preference options, lists defaults.

Can change w/o recompilation:Unzip the plugin .jar,Edit the preferences.ini.

Page 9: Control System Studio Training - Hierarchical Preferences

9 Managed by UT-Battellefor the Department of Energy

3. Product’s plugin_customization.ini

Site-specific Product sets preferences for each plugin

name.of.plugin/setting = value

Page 10: Control System Studio Training - Hierarchical Preferences

10 Managed by UT-Battellefor the Department of Energy

4. Command Line

css –pluginCustomization /path/to/settings.ini

Format: Same as plugin_customization.ini

name.of.plugin/setting = value

To avoid pulling your hair out:

Do include the /path/to/…!– File not found: No error message

Double-check name.of.plugin, name-of-setting!– Typo: Just won’t work

Page 11: Control System Studio Training - Hierarchical Preferences

11 Managed by UT-Battellefor the Department of Energy

Hierarchical Preferences

org.csstudio.platform.libs.epics preferences.ini:addr_list=

Product’s plugin_customization.ini:org.csstudio.platform.libs.epics/addr_list=127.0.01

Command-line

Page 12: Control System Studio Training - Hierarchical Preferences

12 Managed by UT-Battellefor the Department of Energy

Scenarios

Site-specific product:– SNS CSS, NSLS-II CSS, …

Best, but also more work

Use existing product– Edit product’s plugin_customization.ini before

passing on to users at your site

Quite practical for a while

Command-line –pluginCustomization /…/x.iniTo get started, or to support different setups for

‘Office’, ‘Control Room’, ‘Home’, …


Recommended