1 | Install directions: |
---|
2 | 1. Expand the zip files. The top level Middle Layer directory tree is the following. |
---|
3 | |
---|
4 | <MiddleLayerDirectory>acceleratorcontrol |
---|
5 | <MiddleLayerDirectory>acceleratorlink |
---|
6 | <MiddleLayerDirectory>applications/loco |
---|
7 | <MiddleLayerDirectory>at |
---|
8 | <MiddleLayerDirectory>atold |
---|
9 | <MiddleLayerDirectory>machine |
---|
10 | |
---|
11 | acceleratorcontrol, at, and applications are in one zip file. |
---|
12 | acceleratorlink and machine directories are in separate zip files. |
---|
13 | |
---|
14 | 2. Run the appropriate set path function. For the ALS, |
---|
15 | >> run <MiddleLayerDirectory>setpathals |
---|
16 | |
---|
17 | As long as the Middle Layer subdirectory layout is not changed, the |
---|
18 | MiddleLayerDirectory tree can be moved anywhere. The path is set by the |
---|
19 | location of the set path function. |
---|
20 | |
---|
21 | A good test is to run plotfamily. Try getting an orbit, adding the |
---|
22 | lattice drawing to the plot, etc. There are about 11 rings presently simulated. |
---|
23 | Look in the machine directory to see which accelerators you have. |
---|
24 | Usually the als, spear3, xray, vuv are the only accelerators distributed |
---|
25 | with the release. If you want the setup files for another accelerator |
---|
26 | it's best to contact them directly. I don't give out the setup software |
---|
27 | for other accelerators without their consent. |
---|
28 | |
---|
29 | 3. You might need to change which Matlab-to-control system link to use. |
---|
30 | Look in the acceleratorlink directory to see what's available. |
---|
31 | |
---|
32 | Note: For EPICS users: |
---|
33 | 1. MCA does not need any additions to environment variables. |
---|
34 | 2. If using labCA or SCA the library path will need to be changed. |
---|
35 | For example: |
---|
36 | a. LabCA on Solaris, add to the LD_LIBRARY_PATH |
---|
37 | <MiddleLayerDirectory>acceleratorlink/labca/lib/solaris-sparc |
---|
38 | b. SCA on Solaris, add to the LD_LIBRARY_PATH |
---|
39 | <MiddleLayerDirectory>acceleratorlink/sca/lib/solaris-sparc |
---|
40 | |
---|
41 | 4. The AT simulator and LOCO are not needed for the middle layer but it's very nice to |
---|
42 | have them working. I include them in the distribution. The AT version is the one I |
---|
43 | use and have tested with the Middle Layer and LOCO. For the latest AT release and |
---|
44 | important information about changes to AT see Andreiâs website. |
---|
45 | http://www.slac.stanford.edu/~terebilo/at/ |
---|
46 | |
---|
47 | Note: The new AT does not work on linux when using a Matlab version |
---|
48 | less than 7. I'm not sure why, but I prefer to upgrade Matlab or use |
---|
49 | an older AT version than to figure it out. The set path function will |
---|
50 | select the proper version. However, if using an older AT, then |
---|
51 | the environmental variable ATROOT needs to be defined. |
---|
52 | ATROOT = <MiddleLayerDirectory>/at_old |
---|
53 | The new AT does not require an environmental variable ATROOT. |
---|
54 | |
---|
55 | 5. To create a setup for a new accelerator look at the ALS or a simpler ring like vuv for an |
---|
56 | example. The basics tasks are the following. |
---|
57 | a. Write a setpath<name> file in acceleratorcontrol |
---|
58 | b. Create new acclerator directories under the machine directory. |
---|
59 | Write a new aoinit, setoperationalmode, and updateatindex files as well |
---|
60 | as an AT deck. |
---|
61 | This process usually takes a couple days to get correct. Look in the |
---|
62 | MiddleLayerManual.doc in the docs directory for some guidance. Since the |
---|
63 | setup is not well documented feel free to contact me for more help. |
---|
64 | |
---|
65 | 6. If you find any bugs in the software please contact me. I'm trying to make |
---|
66 | the software as bug free as possible. Also, if you write a new function that would be |
---|
67 | useful for other accelerators please send it to me to be included in future releases. |
---|
68 | |
---|
69 | |
---|
70 | Greg Portmann |
---|
71 | gjportmann@lbl.gov |
---|
72 | 1-510-486-4105 |
---|
73 | |
---|