source: cssboy_deployment/docs/source/instructions.rst @ 1051

Last change on this file since 1051 was 1051, checked in by jemian, 11 years ago

revising instructions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author HeadURL Id
File size: 10.6 KB
Line 
1.. $Id: instructions.rst 1051 2012-07-18 15:01:17Z jemian $
2
3==========================
4Instructions
5==========================
6
7Install OPI screens (and other resources such as image files, javascript,
8or definition files) into projects within your workspace.  The OPI screens
9from *synApps* [#synApps]_ will go into their own project within your
10workspace.  The screens from the APS accelerator will go into another
11project.  Your instrument and beam line screens will typically go into
12a single project but it is possible that you might have separate projects
13for upstream optics, beam line staff, and users.
14
15  Each *project* within CSS may come from a separate location:
16 
17  * local directory within your account and CSS workspace
18  * file server accessible from your directory space
19  * NFS or SMB (Samba) file server
20  * Version Control working directory
21 
22  You can't share the CSS Workspace with another user,
23  even if that other user is logged in with the same name.
24  This will likely cause abnormal behavior for CSS.
25  **But**, you can import a common or shared directory into your CSS
26  workspace.
27
28Leave the ``CSS`` project for use as a sandbox (special area for files
29which you are testing or using for a short time and do not wish to treat
30as part of everyone's workspace).
31
32
33Install CSS-BOY on your computer
34++++++++++++++++++++++++++++++++
35
36CSS [#CSS]_ (Control System Studio) was designed at DESY, Hamburg, Germany. 
37CSS is software that provides a rich
38environment for EPICS controls.
39
40The SNS at ORNL added the BOY (Best Opi Yet --
41where OPI is an EPICS term Operator Programmer Interface)
42component which is an EPICS display tool.
43
44        .. tip:: Use the SNS release
45               
46                For some time, APS developed a custom CSS product [#aps_css]_ to provide
47                features and customizations that were not part of the SNS build.
48               
49                It is recommended now to use the CSS-BOY as built by the team at
50                SNS [#css_boy_downloads]_.
51       
52        .. note:: 
53           You need a Java Runtime Environment (at least) to run CSS.
54           Also, you will need one or more EPICS IOCs to serve PVs
55           or all you can do is use the simulator inside CSS.
56
57#. Visit this URL and download the most-recent version of
58   **Basic EPICS** for your OS:
59   http://ics-web.sns.ornl.gov/css/products.html
60#. Unzip the contents someplace.  Typical for me is:
61   ``~/Apps/CSS_EPICS_3.1.0``
62
63
64add OPI screens from synApps as a CSS project
65+++++++++++++++++++++++++++++++++++++++++++++
66
67#. Open the ``CSS_EPICS_3.1.0`` (or whatever version) directory
68#. Start ``css`` by double-clicking it.
69   If you use a unix or linux command line, type::
70   
71       ./css &
72   
73#. Select menu ``File-->Import ...``
74#. Open ``General`` category,
75   select ``Existing Projects into Workspace``,
76   click ``Next`` button
77#. Click ``Browse ...`` button (in *Import* window),
78   navigate to ``/APSshare/epics/synApps_5_6/support/``
79   (or ``/usr/local/epics/synAppsSVN/support/`` or wherever)
80#. Click ``Ok`` button
81#. Click ``Finish`` button (in *Import* window)
82
83.. note::  If CSS reports that your synApps directory cannot be imported
84        since it is not a *project*, you can make it a project by creating
85        a ``synApps/support/.project`` text XML file with this content::
86
87                <?xml version="1.0" encoding="UTF-8"?>
88                <projectDescription>
89                        <name>synApps</name>
90                        <comment>EPICS synApps</comment>
91                        <projects>
92                        </projects>
93                        <buildSpec>
94                        </buildSpec>
95                        <natures>
96                        </natures>
97                </projectDescription>
98
99
100define synApps default fonts and colors
101+++++++++++++++++++++++++++++++++++++++++++++
102
103#. Select menu ``Edit-->Preferences ...``
104#. Open item ``CSS Applications``
105#. Open item ``Display``
106#. Click on item ``BOY``
107#. For Color File, replace text with ``/synApps/color.def`` or *Browse...* to it
108#. For Font File, replace text with ``/synApps/font.def`` or *Browse...* to it
109#. For Top OPIs, replace with OPI file of your choice
110
111.. note:: If get a console message that says:
112
113      2012-04-30 15:59:12 ERROR: Failed to read font definition file.
114
115   then you've got a typo or some other error.  Repeat these steps to fix it.
116
117
118Define a project for your EPICS installation
119+++++++++++++++++++++++++++++++++++++++++++++
120
121Screens for your instrument or beam line or other installation of EPICS
122may already be available.  If so, you might import them by following the steps
123above used to import synApps.  If you need to develop your own screens,
124then follow these steps:
125
126#. Select menu ``File-->New``
127#. Open ``General`` category,
128   select ``Project``,
129   click ``Next`` button
130#. Give it a Project name, something short such as *44ID* or *iocPRJ*
131   (try to avoid using spaces, it makes things harder later on),
132#. In the ``Navigator`` view,
133   open the new project by double-clicking (or any other equivalent way)
134
135Create an OPI file
136******************
137
138#. Select menu ``File-->New``
139#. Open ``BOY`` category,
140   select ``OPI File``,
141   click ``Next`` button
142#. Select the folder to contain your new OPI screen,
143   type the name of the new OPI file in the box,
144   click ``Finish`` button
145
146Your new screen will appear in a CSS-BOY editing window.
147You might consider changing to the ``OPI Editor`` perspective
148as this will provide much more help in editing the screen.
149
150Once you have setup the CSS-BOY project for your EPICS installation,
151you might want one particular file to be the default  *main* file
152for your CSS-BOY workspace.  Edit the menu for *Top OPIs* via:
153``Edit --> Preferences ... --> CSS Applications --> Display``
154
155
156Notes
157------------
158
159.. note:: This could be set in in a ``.ini`` file.  Needs some research...
160
161::
162
163  Edit (Menu)
164    Preferences
165      CSS Applications
166            Display
167              BOY
168                    OPI Search Path
169
170  /synApps/areaDetector | /synApps/asyn | /synApps/autosave | /synApps/busy | /synApps/calc | /synApps/camac | /synApps/dac128V | /synApps/delaygen | /synApps/dxp | /synApps/iocStats | /synApps/ip | /synApps/ip330 | /synApps/ipUnidig | /synApps/love | /synApps/mca | /synApps/modbus | /synApps/motor | /synApps/optics | /synApps/quadEM | /synApps/softGlue | /synApps/sscan | /synApps/std | /synApps/vac | /synApps/vme | /synApps/xxx
171
172**PRJ:** Here are these instructions as I sent them in an email on 2012-06-10::
173
174        To get the synApps OPI screens, you need to do one of the following (subject to change as we improve this process over the next months as all these options are development status):
175
176        import synApps project from /APSshare
177                path:   /APSshare/epics/synApps_5_6/support/all_opi
178
179
180        checkout from SVN, then import project
181                svn co https://subversion.xor.aps.anl.gov/bcdaext/cssboy_deployment/all_opi/ /path/to/a/new/synApps_all_opi
182
183
184        To import synApps OPI screens as a project in CSS-BOY:
185
186        Menu "File"
187          -->  "Import ..."
188          open  "General"
189          select "Existing projects into workspace"
190        button [Next]
191        under "Select root directory:", browse to or enter path on file system
192        make sure checkbox is marked for "synApps"
193        button [Finish]
194
195
196        You will also need to get the synApps project onto your OPI search path.  Here is how:
197
198        Menu "CSS"
199          -->   "Preferences:"
200          open  "CSS Applications"
201          open  "Display"
202          click on  "BOY"
203          change text in entry box for "OPI Search Path" to this really long string (all one line)
204
205          /synApps/areaDetector | /synApps/asyn | /synApps/autosave | /synApps/busy | /synApps/calc | /synApps/camac | /synApps/dac128V | /synApps/delaygen | /synApps/dxp | /synApps/iocStats | /synApps/ip | /synApps/ip330 | /synApps/ipUnidig | /synApps/love | /synApps/mca | /synApps/modbus | /synApps/motor | /synApps/optics | /synApps/quadEM | /synApps/softGlue | /synApps/sscan | /synApps/std | /synApps/vac | /synApps/vme | /synApps/xxx
206
207        click "Ok" until you out of the dialogs.  Now the paths should work.
208
209
210Also, when calling a synApps .opi screen from the instrument or beam line, it is not necessary to use the full path since there is an OPI search path that will locate the screen.  Example, instead of::
211
212   /synApps/motor/motorApp/op/opi/motor3x.opi
213
214you would just call::
215
216   motor3x.opi
217
218
219Definitions
220-----------
221
222Some of the terms used by eclipse and CSS and CSS-BOY may be unfamiliar.
223
224============  ==================================================================
225term
226============  ==================================================================
227Workspace     file system directory containing directories
228              and files used by a single CSS-BOY user
229Project       subdirectory within a ``workspace`` containing
230              related files and subdirectories
231``.js``       javascript file
232``.opi``      display screen file used by CSS-BOY
233Perspective   Defined arrangement of Views and Editors in eclipse.
234              A Perspective can be customized and saved within
235              the Workspace for later recall.
236View          One type of display in eclipse, some can be undocked
237              (or torn-off) so they can be a spearate window.
238              ??? Are undocked Views saved as part of the
239              Perspective? ???
240Editor        One type of display in eclipse.
241Navigator     Used to browse the Workspace for files and subdirectories.
242eclipse       Java-based software providing a configurable interactive
243              development environment (IDE).  Eclipse can be highly
244              customized to deliver a specific application,
245              such as CSS or CSS-BOY.
246CSS           Control System Studio from DESY, based on eclipse
247CSS-BOY       CSS Best Opi Yet EPICS Display software (replacement for medm)
248============  ==================================================================
249
250
251.. rubric:: The Glossary
252
253.. glossary::
254
255Workspace
256        file system directory containing directories
257        and files used by a single CSS-BOY user
258
259Project
260        subdirectory within a ``workspace`` containing
261        related files and subdirectories
262
263``.js``
264        javascript file
265
266``.opi``
267        display screen file used by CSS-BOY
268
269Perspective   
270        Defined arrangement of Views and Editors in eclipse.
271        A Perspective can be customized and saved within
272        the Workspace for later recall.
273
274View
275        One type of display in eclipse, some can be undocked
276        (or torn-off) so they can be a spearate window.
277        ??? Are undocked Views saved as part of the
278        Perspective? ???
279
280Editor
281        One type of display in eclipse.
282
283Navigator
284        Used to browse the Workspace for files and subdirectories.
285
286eclipse
287        Java-based software providing a configurable interactive
288        development environment (IDE).  Eclipse can be highly
289        customized to deliver a specific application,
290        such as CSS or CSS-BOY.
291
292CSS
293        Control System Studio from DESY, based on eclipse
294
295CSS-BOY
296        CSS Best Opi Yet EPICS Display software (replacement for medm)
297
298
299--------------------
300
301Footnotes
302---------
303
304.. [#eclipse]                   http://eclipse.org
305.. [#css_boy_downloads] http://ics-web.sns.ornl.gov/css/products.html
306.. [#css]                               http://css.desy.de
307.. [#aps_css]                   http://css.aps.anl.gov
308.. [#synApps]                   http://www.aps.anl.gov/bcda/synApps
Note: See TracBrowser for help on using the repository browser.