Ignore:
Timestamp:
Aug 3, 2012 4:20:01 PM (11 years ago)
Author:
jemian
Message:

corrections & rearrangements

Location:
cssboy_deployment/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cssboy_deployment/docs

    • Property svn:ignore set to
      build
  • cssboy_deployment/docs/source/instructions.rst

    r1056 r1057  
    88        related to installation or configuration of CSS-BOY.  It needs to be
    99        set into some sort of order.
     10
     11
     12.. note:: This comes from a SVN repo::
     13
     14        svn co https://subversion.xray.aps.anl.gov/bcdaext/cssboy_deployment cssboy_deployment
    1015
    1116Install OPI screens (and other resources such as image files, javascript,
     
    6873
    6974
     75
     76
     77Getting the synApps OPI screens from some place
     78-----------------------------------------------------
     79
     80To get the synApps OPI screens, you need to do one of the following
     81(subject to revision):
     82
     83#. import synApps project from /APSshare
     84        path:   /APSshare/epics/synApps_5_6/support/all_opi
     85
     86
     87#. checkout synApps development trunk from SVN, then import as project
     88        There is a script to do the checkout::
     89
     90                https://subversion.xor.aps.anl.gov/synApps/support/trunk/checkout.csh
     91       
     92        One way is to place this file in */usr/local/epics* and then run it.
     93        It will create a directory called *synAppsSVN/support* that contains
     94        the development trunk.
     95
     96
     97
    7098add OPI screens from synApps as a CSS project
    71 +++++++++++++++++++++++++++++++++++++++++++++
     99--------------------------------------------------------------------------
    72100
    73101#. Open the ``CSS_EPICS_3.1.1`` (or whatever version) directory
     
    105133
    106134define synApps default fonts and colors
    107 +++++++++++++++++++++++++++++++++++++++++++++
     135---------------------------------------------
    108136
    109137#. Select menu ``Edit-->Preferences ...``
     
    120148
    121149   then you've got a typo or some other error.  Repeat these steps to fix it.
    122 
    123 
    124 Define a project for your EPICS installation
    125 +++++++++++++++++++++++++++++++++++++++++++++
    126 
    127 Screens for your instrument or beam line or other installation of EPICS
    128 may already be available.  If so, you might import them by following the steps
    129 above used to import synApps.  If you need to develop your own screens,
    130 then follow these steps:
    131 
    132 #. Select menu ``File-->New``
    133 #. Open ``General`` category,
    134    select ``Project``,
    135    click ``Next`` button
    136 #. Give it a Project name, something short such as *44ID* or *iocPRJ*
    137    (try to avoid using spaces, it makes things harder later on),
    138 #. In the ``Navigator`` view,
    139    open the new project by double-clicking (or any other equivalent way)
    140 
    141 Create an OPI file
    142 ******************
    143 
    144 #. Select menu ``File-->New``
    145 #. Open ``BOY`` category,
    146    select ``OPI File``,
    147    click ``Next`` button
    148 #. Select the folder to contain your new OPI screen,
    149    type the name of the new OPI file in the box,
    150    click ``Finish`` button
    151 
    152 Your new screen will appear in a CSS-BOY editing window.
    153 You might consider changing to the *OPI Editor* perspective
    154 as this will provide much more help in editing the screen.
    155 
    156 Once you have setup the CSS-BOY project for your EPICS installation,
    157 you might want one particular file to be the default  *main* file
    158 for your CSS-BOY workspace.  Edit the menu for *Top OPIs* via:
    159 ``Edit --> Preferences ... --> CSS Applications --> Display``
    160 
    161 
    162 Setting the OPI Search Path
    163 ------------------------------------
    164 
    165 .. note:: This could be set in a ``.ini`` file.  Needs some research...
    166         Check the help for "Setting Preferences"
    167        
    168         The default preferences can be set in ``plugin_customization.ini``
    169         file which is located in the root of the "Product" plugin directory
    170         or jar file. It is ideally used to provide site-specific default
    171         preferences. For example, you can change the default BOY preferences
    172         in this file with corresponding preference keys::
    173 
    174                 org.csstudio.opibuilder/color_file=http://your_site.gov/color.def
    175                 org.csstudio.opibuilder/font_file=http://your_site.gov/font.def
    176                 org.csstudio.opibuilder/opi_gui_refresh_cycle=100
    177                 org.csstudio.opibuilder/no_edit=true
    178                 org.csstudio.opibuilder/macros="N","North"|"W","West"|"SYS","LLRF"|"SubSys","HPM"
    179                 #popup console level, it can be NO_POP, INFO, or ALL
    180                 org.csstudio.opibuilder/popup_console=NO_POP
    181 
    182  You can also give a different customization file with the command line option -pluginCustomization when starting CSS.
    183 
    184 
    185 Getting the synApps OPI screens
    186 -------------------------------------
    187 
    188 To get the synApps OPI screens, you need to do one of the following
    189 (subject to revision):
    190 
    191 #. import synApps project from /APSshare
    192         path:   /APSshare/epics/synApps_5_6/support/all_opi
    193 
    194 
    195 #. checkout synApps development trunk from SVN, then import as project
    196         There is a script to do the checkout::
    197 
    198                 https://subversion.xor.aps.anl.gov/synApps/support/trunk/checkout.csh
    199        
    200         One way is to place this file in */usr/local/epics* and then run it.
    201         It will create a directory called *synAppsSVN/support* that contains
    202         the development trunk.
    203 
    204 
    205 Importing the synApps OPI screens
    206 -------------------------------------
    207 
    208 To import synApps OPI screens as a project in CSS-BOY::
    209 
    210         Menu "File"
    211           -->  "Import ..."
    212           open  "General"
    213           select "Existing projects into workspace"
    214         button [Next]
    215         under "Select root directory:", browse to or enter path on file system
    216         make sure checkbox is marked for "synApps"
    217         button [Finish]
    218 
     150   
     151.. note::  The ``color.def`` (or ``font.def``) file might not be found
     152        at the root of the synApps repository.
     153        Another place to find it is in the *xxx* module, at this path::
     154       
     155                /synApps/xxx/xxxApp/op/opi/
     156
     157.. caution::  Looks like things are here twice!  Be prepared.
     158
     159OPI Search Path
     160---------------------------------------------
     161
     162.. warning:: Don't rely on this section here.  A better one is up ahead!  See: :ref:`Setting the OPI Search Path`.
    219163
    220164You will also need to get the synApps project onto your OPI search path.  Here is how::
     
    250194        C:\Users\Pete\Downloads\sns_css_3.1.1-win32.win32.x86_64\CSS_3.1.1\plugins\org.csstudio.sns.product_3.1.1.20120718
    251195
     196
     197Define a project for your EPICS installation
     198+++++++++++++++++++++++++++++++++++++++++++++
     199
     200Screens for your instrument or beam line or other installation of EPICS
     201may already be available.  If so, you might import them by following the steps
     202above used to import synApps.  If you need to develop your own screens,
     203then follow these steps:
     204
     205#. Select menu ``File-->New``
     206#. Open ``General`` category,
     207   select ``Project``,
     208   click ``Next`` button
     209#. Give it a Project name, something short such as *44ID* or *iocPRJ*
     210   (try to avoid using spaces, it makes things harder later on),
     211#. In the ``Navigator`` view,
     212   open the new project by double-clicking (or any other equivalent way)
     213
     214Create an OPI file
     215+++++++++++++++++++++
     216
     217#. Select menu ``File-->New``
     218#. Open ``BOY`` category,
     219   select ``OPI File``,
     220   click ``Next`` button
     221#. Select the folder to contain your new OPI screen,
     222   type the name of the new OPI file in the box,
     223   click ``Finish`` button
     224
     225Your new screen will appear in a CSS-BOY editing window.
     226You might consider changing to the *OPI Editor* perspective
     227as this will provide much more help in editing the screen.
     228
     229Once you have setup the CSS-BOY project for your EPICS installation,
     230you might want one particular file to be the default  *main* file
     231for your CSS-BOY workspace.  Edit the menu for *Top OPIs* via:
     232``Edit --> Preferences ... --> CSS Applications --> Display``
     233
     234
     235.. _Setting the OPI Search Path:
     236
     237Setting the OPI Search Path
     238------------------------------------
     239
     240.. note:: This could be set in a ``.ini`` file.  Needs some research...
     241        Check the help for "Setting Preferences"
     242       
     243        The default preferences can be set in ``plugin_customization.ini``
     244        file which is located in the root of the "Product" plugin directory
     245        or jar file. It is ideally used to provide site-specific default
     246        preferences. For example, you can change the default BOY preferences
     247        in this file with corresponding preference keys::
     248
     249                org.csstudio.opibuilder/color_file=http://your_site.gov/color.def
     250                org.csstudio.opibuilder/font_file=http://your_site.gov/font.def
     251                org.csstudio.opibuilder/opi_gui_refresh_cycle=100
     252                org.csstudio.opibuilder/no_edit=true
     253                org.csstudio.opibuilder/macros="N","North"|"W","West"|"SYS","LLRF"|"SubSys","HPM"
     254                #popup console level, it can be NO_POP, INFO, or ALL
     255                org.csstudio.opibuilder/popup_console=NO_POP
     256
     257 You can also give a different customization file with the command line option -pluginCustomization when starting CSS.
     258
     259.. used to show "importing synApps screens" here
    252260
    253261Calling the synApps OPI screens
     
    302310        #        {Workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings
    303311
    304 ::
    305                              {Workspace}\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.csstudio.opibuilder.prefs
     312.. code-block:: text
     313    :linenos:
     314
     315                                 {Workspace}\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.csstudio.opibuilder.prefs
    306316        C:\Users\Pete\CSS-Workspaces\Default\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.csstudio.opibuilder.prefs
     317
     318
     319Here is an example of the *org.csstudio.opibuilder.prefs* file on my Ubuntu system:
     320
     321.. code-block:: text
     322        :linenos:
     323       
     324        color_file=/iocPRJ/color.def
     325        eclipse.preferences.version=1
     326        font_file=/iocPRJ/font.def
     327        opi_search_path=/synApps/areaDetector/ADApp/op/opi | ... you get the idea, it's a long line
     328        popup_console=ALL
     329        top_opis=/iocPRJ/prj.opi
     330
    307331
    308332Set OPI Search Path from .ini file
Note: See TracChangeset for help on using the changeset viewer.