Changeset 1057 for cssboy_deployment/docs/source/instructions.rst
- Timestamp:
- Aug 3, 2012 4:20:01 PM (11 years ago)
- Location:
- cssboy_deployment/docs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cssboy_deployment/docs
-
Property
svn:ignore
set to
build
-
Property
svn:ignore
set to
-
cssboy_deployment/docs/source/instructions.rst
r1056 r1057 8 8 related to installation or configuration of CSS-BOY. It needs to be 9 9 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 10 15 11 16 Install OPI screens (and other resources such as image files, javascript, … … 68 73 69 74 75 76 77 Getting the synApps OPI screens from some place 78 ----------------------------------------------------- 79 80 To 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 70 98 add OPI screens from synApps as a CSS project 71 +++++++++++++++++++++++++++++++++++++++++++++ 99 -------------------------------------------------------------------------- 72 100 73 101 #. Open the ``CSS_EPICS_3.1.1`` (or whatever version) directory … … 105 133 106 134 define synApps default fonts and colors 107 +++++++++++++++++++++++++++++++++++++++++++++ 135 --------------------------------------------- 108 136 109 137 #. Select menu ``Edit-->Preferences ...`` … … 120 148 121 149 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 159 OPI 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`. 219 163 220 164 You will also need to get the synApps project onto your OPI search path. Here is how:: … … 250 194 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 251 195 196 197 Define a project for your EPICS installation 198 +++++++++++++++++++++++++++++++++++++++++++++ 199 200 Screens for your instrument or beam line or other installation of EPICS 201 may already be available. If so, you might import them by following the steps 202 above used to import synApps. If you need to develop your own screens, 203 then 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 214 Create 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 225 Your new screen will appear in a CSS-BOY editing window. 226 You might consider changing to the *OPI Editor* perspective 227 as this will provide much more help in editing the screen. 228 229 Once you have setup the CSS-BOY project for your EPICS installation, 230 you might want one particular file to be the default *main* file 231 for 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 237 Setting 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 252 260 253 261 Calling the synApps OPI screens … … 302 310 # {Workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings 303 311 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 306 316 C:\Users\Pete\CSS-Workspaces\Default\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.csstudio.opibuilder.prefs 317 318 319 Here 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 307 331 308 332 Set OPI Search Path from .ini file
Note: See TracChangeset
for help on using the changeset viewer.