1 | %system parameter save file |
---|
2 | %timestamp: 18-Jan-2002 08:08:08 |
---|
3 | %comment: Save System |
---|
4 | ad=getad; |
---|
5 | filetype = 'RESTORE'; %check to see if correct file type |
---|
6 | sys.machine = 'ASPBooster'; %machine for control |
---|
7 | sys.mode = 'ONLINE'; %online or simulator |
---|
8 | sys.datamode = 'REAL'; %raw or real (for real: (1)response matrix multiplied by bpm gains, (2) BPM reads have gain, offset |
---|
9 | sys.bpmode = 'Bergoz'; %BPM system mode |
---|
10 | sys.bpmslp = 3.0; %BPM sleep time in sec |
---|
11 | sys.plane = 1; %plane (1=horizontal 2=vertical) |
---|
12 | sys.algo = 'SVD'; %fitting algorithm |
---|
13 | sys.pbpm = 1; %use of photon BPMs |
---|
14 | sys.filpath = ad.Directory.Orbit; %file path in MATLAB |
---|
15 | sys.respfiledir = ad.Directory.OpsData; %response matrix directory |
---|
16 | sys.respfilename = ad.OpsData.BPMRespFile; |
---|
17 | sys.dispfiledir = ad.Directory.OpsData; %dispersion directory |
---|
18 | sys.dispfilename = ad.OpsData.DispFile; %dispersion file |
---|
19 | sys.mxs = 130.2; %maximum ring circumference |
---|
20 | sys.xlimax = 130.2; %abcissa plot limit |
---|
21 | sys.mxphi(1) = 10; %maximum horizontal phase advance |
---|
22 | sys.mxphi(2) = 4; %maximum vertical phase advance |
---|
23 | sys.xscale = 'meter'; %abcissa plotting mode (meter or phase) |
---|
24 | |
---|
25 | %*=== HORIZONTAL DATA ===* |
---|
26 | bpm(1).dev = 10; %maximum orbit deviation |
---|
27 | bpm(1).drf = 0; %dispersion component zero |
---|
28 | bpm(1).id = 1; %BPM selection |
---|
29 | bpm(1).scalemode= 0; %BPM scale mode 0=manual mode, 1=autoscale |
---|
30 | bpm(1).ylim = 0.5; %BPM vertical axis scale |
---|
31 | cor(1).fract = 1.0; %fraction of correctors |
---|
32 | cor(1).id=1; %COR selection |
---|
33 | cor(1).scalemode=0; %COR scale mode 0=manual mode, 1=autoscale |
---|
34 | cor(1).ylim = 30; %COR horizontal axis scale (amp) |
---|
35 | rsp(1).disp = 'off'; %mode for matrix column display |
---|
36 | rsp(1).eig = 'off'; %mode for eigenvector display |
---|
37 | rsp(1).fit = 0; %valid fit flag |
---|
38 | rsp(1).rfflag = 1; %rf fitting flag |
---|
39 | rsp(1).rfcorflag= 1; %fitting flag for rf component in correctors |
---|
40 | rsp(1).savflag = 0; %save solution flag |
---|
41 | rsp(1).nsvd = 54; %number of singular values |
---|
42 | rsp(1).svdtol = 0; %svd tolerance (0 uses number of singular values) |
---|
43 | rsp(1).nsvdmx = 1; %default maximum number of singular values |
---|
44 | |
---|
45 | %Note: only fit and weight for fitting will be used in orbit program from this array |
---|
46 | % Name and index are loaded from middleware |
---|
47 | etaxwt=0.0; |
---|
48 | % name index fit (0/1) weight etaweight |
---|
49 | bpmx={ |
---|
50 | { '1BPMx1 ' 1 1 1.000 etaxwt } |
---|
51 | { '1BPMx2 ' 2 1 1.000 etaxwt } |
---|
52 | { '1BPMx3 ' 3 1 1.000 etaxwt } |
---|
53 | { '1BPMx4 ' 4 1 1.000 etaxwt } |
---|
54 | { '1BPMx5 ' 5 1 1.000 etaxwt } |
---|
55 | { '1BPMx6 ' 6 1 1.000 etaxwt } |
---|
56 | { '1BPMx7 ' 7 1 1.000 etaxwt } |
---|
57 | { '1BPMx8 ' 8 1 1.000 etaxwt } |
---|
58 | { '2BPMx1 ' 9 1 1.000 etaxwt } |
---|
59 | { '2BPMx2 ' 10 1 1.000 etaxwt } |
---|
60 | { '2BPMx3 ' 11 1 1.000 etaxwt } |
---|
61 | { '2BPMx4 ' 12 1 1.000 etaxwt } |
---|
62 | { '2BPMx5 ' 13 1 1.000 etaxwt } |
---|
63 | { '2BPMx6 ' 14 1 1.000 etaxwt } |
---|
64 | { '2BPMx7 ' 15 1 1.000 etaxwt } |
---|
65 | { '2BPMx8 ' 16 1 1.000 etaxwt } |
---|
66 | { '3BPMx1 ' 17 1 1.000 etaxwt } |
---|
67 | { '3BPMx2 ' 18 1 1.000 etaxwt } |
---|
68 | { '3BPMx3 ' 19 1 1.000 etaxwt } |
---|
69 | { '3BPMx4 ' 20 1 1.000 etaxwt } |
---|
70 | { '3BPMx5 ' 21 1 1.000 etaxwt } |
---|
71 | { '3BPMx6 ' 22 1 1.000 etaxwt } |
---|
72 | { '3BPMx7 ' 23 1 1.000 etaxwt } |
---|
73 | { '3BPMx8 ' 24 1 1.000 etaxwt } |
---|
74 | { '4BPMx1 ' 25 1 1.000 etaxwt } |
---|
75 | { '4BPMx2 ' 26 1 1.000 etaxwt } |
---|
76 | { '4BPMx3 ' 27 1 1.000 etaxwt } |
---|
77 | { '4BPMx4 ' 28 1 1.000 etaxwt } |
---|
78 | { '4BPMx5 ' 29 1 1.000 etaxwt } |
---|
79 | { '4BPMx6 ' 30 1 1.000 etaxwt } |
---|
80 | { '4BPMx7 ' 31 1 1.000 etaxwt } |
---|
81 | { '4BPMx8 ' 32 1 1.000 etaxwt } |
---|
82 | }; |
---|
83 | |
---|
84 | %Note: only fit, weight for fitting will be used in orbit program from this array |
---|
85 | % Name and index are loaded from middleware |
---|
86 | % name index fit (0/1) weight |
---|
87 | corx={ |
---|
88 | {'1HCM1 ' 1 1 1.0 } |
---|
89 | {'1HCM2 ' 2 1 1.0 } |
---|
90 | {'1HCM3 ' 3 1 1.0 } |
---|
91 | {'1HCM4 ' 4 1 1.0 } |
---|
92 | {'1HCM5 ' 5 1 1.0 } |
---|
93 | {'1HCM6 ' 6 1 1.0 } |
---|
94 | {'2HCM1 ' 7 1 1.0 } |
---|
95 | {'2HCM2 ' 8 1 1.0 } |
---|
96 | {'2HCM3 ' 9 1 1.0 } |
---|
97 | {'2HCM4 ' 10 1 1.0 } |
---|
98 | {'2HCM5 ' 11 1 1.0 } |
---|
99 | {'2HCM6 ' 12 1 1.0 } |
---|
100 | {'3HCM1 ' 13 1 1.0 } |
---|
101 | {'3HCM2 ' 14 1 1.0 } |
---|
102 | {'3HCM3 ' 15 1 1.0 } |
---|
103 | {'3HCM4 ' 16 1 1.0 } |
---|
104 | {'3HCM5 ' 17 1 1.0 } |
---|
105 | {'3HCM6 ' 18 1 1.0 } |
---|
106 | {'4HCM1 ' 19 1 1.0 } |
---|
107 | {'4HCM2 ' 20 1 1.0 } |
---|
108 | {'4HCM3 ' 21 1 1.0 } |
---|
109 | {'4HCM4 ' 22 1 1.0 } |
---|
110 | {'4HCM5 ' 23 1 1.0 } |
---|
111 | {'4HCM6 ' 24 1 1.0 } |
---|
112 | }; |
---|
113 | |
---|
114 | %*=== VERTICAL DATA ===* |
---|
115 | BPMx(2).dev=10; %maximum orbit deviation |
---|
116 | BPMx(2).drf=0; %dispersion component zero |
---|
117 | BPMx(2).id=1; %BPMx selection |
---|
118 | BPMx(2).scalemode=0; %BPMx scale mode 0=manual mode, 1=autoscale |
---|
119 | BPMx(2).ylim=0.25; %BPMx vertical axis scale |
---|
120 | cor(2).fract=1.0; %fraction of correctors |
---|
121 | cor(2).id =1; %COR selection |
---|
122 | cor(2).scalemode=0; %COR scale mode 0=manual mode, 1=autoscale |
---|
123 | cor(2).ylim =30; %COR vertical axis scale (amp) |
---|
124 | rsp(2).disp ='off'; %mode for matrix column display |
---|
125 | rsp(2).eig ='off'; %mode for eigenvector display |
---|
126 | rsp(2).fit =0; %valid fit flag |
---|
127 | rsp(2).rfflag=1; %rf fitting flag |
---|
128 | rsp(2).rfcorflag= 1; %fitting flag for rf component in correctors |
---|
129 | rsp(2).savflag=0; %save solution flag |
---|
130 | rsp(2).nsvd=54; %number of singular values |
---|
131 | rsp(2).svdtol=0; %svd tolerance (0 uses number of singular values) |
---|
132 | rsp(2).nsvdmx=1; %default maximum number of singular values |
---|
133 | |
---|
134 | etaywt=50; %nominal response ~0.25 peak, 5kHz difference ~0.0025 peak (factor 100) |
---|
135 | % name index fit (0/1) weight etaweight |
---|
136 | bpmy={ |
---|
137 | { '1BPMy1 ' 1 1 1.000 etaxwt } |
---|
138 | { '1BPMy2 ' 2 1 1.000 etaxwt } |
---|
139 | { '1BPMy3 ' 3 1 1.000 etaxwt } |
---|
140 | { '1BPMy4 ' 4 1 1.000 etaxwt } |
---|
141 | { '1BPMy5 ' 5 1 1.000 etaxwt } |
---|
142 | { '1BPMy6 ' 6 1 1.000 etaxwt } |
---|
143 | { '1BPMy7 ' 7 1 1.000 etaxwt } |
---|
144 | { '1BPMy8 ' 8 1 1.000 etaxwt } |
---|
145 | { '2BPMy1 ' 9 1 1.000 etaxwt } |
---|
146 | { '2BPMy2 ' 10 1 1.000 etaxwt } |
---|
147 | { '2BPMy3 ' 11 1 1.000 etaxwt } |
---|
148 | { '2BPMy4 ' 12 1 1.000 etaxwt } |
---|
149 | { '2BPMy5 ' 13 1 1.000 etaxwt } |
---|
150 | { '2BPMy6 ' 14 1 1.000 etaxwt } |
---|
151 | { '2BPMy7 ' 15 1 1.000 etaxwt } |
---|
152 | { '2BPMy8 ' 16 1 1.000 etaxwt } |
---|
153 | { '3BPMy1 ' 17 1 1.000 etaxwt } |
---|
154 | { '3BPMy2 ' 18 1 1.000 etaxwt } |
---|
155 | { '3BPMy3 ' 19 1 1.000 etaxwt } |
---|
156 | { '3BPMy4 ' 20 1 1.000 etaxwt } |
---|
157 | { '3BPMy5 ' 21 1 1.000 etaxwt } |
---|
158 | { '3BPMy6 ' 22 1 1.000 etaxwt } |
---|
159 | { '3BPMy7 ' 23 1 1.000 etaxwt } |
---|
160 | { '3BPMy8 ' 24 1 1.000 etaxwt } |
---|
161 | { '4BPMy1 ' 25 1 1.000 etaxwt } |
---|
162 | { '4BPMy2 ' 26 1 1.000 etaxwt } |
---|
163 | { '4BPMy3 ' 27 1 1.000 etaxwt } |
---|
164 | { '4BPMy4 ' 28 1 1.000 etaxwt } |
---|
165 | { '4BPMy5 ' 29 1 1.000 etaxwt } |
---|
166 | { '4BPMy6 ' 30 1 1.000 etaxwt } |
---|
167 | { '4BPMy7 ' 31 1 1.000 etaxwt } |
---|
168 | { '4BPMy8 ' 32 1 1.000 etaxwt } |
---|
169 | }; |
---|
170 | |
---|
171 | % name index fit (0/1) weight |
---|
172 | cory={ |
---|
173 | {'1VCM1 ' 1 1 1.0 } |
---|
174 | {'1VCM2 ' 2 1 1.0 } |
---|
175 | {'1VCM3 ' 3 1 1.0 } |
---|
176 | {'2VCM1 ' 4 1 1.0 } |
---|
177 | {'2VCM2 ' 5 1 1.0 } |
---|
178 | {'2VCM3 ' 6 1 1.0 } |
---|
179 | {'3VCM1 ' 7 1 1.0 } |
---|
180 | {'3VCM2 ' 8 1 1.0 } |
---|
181 | {'3VCM3 ' 9 1 1.0 } |
---|
182 | {'4VCM1 ' 10 1 1.0 } |
---|
183 | {'4VCM2 ' 11 1 1.0 } |
---|
184 | {'4VCM3 ' 12 1 1.0 } |
---|
185 | }; |
---|
186 | %Note: only fit and weight for fitting will be used in orbit program from this array |
---|
187 | % Name and index are loaded from middleware |
---|
188 | % name index fit (0/1) weight |
---|
189 | bly={ |
---|
190 | { 'BL1 ' 1 0 100.000 } |
---|
191 | { 'BL2 ' 2 0 100.000 } |
---|
192 | { 'BL3 ' 3 0 100.000 } |
---|
193 | { 'BL4 ' 4 0 100.000 } |
---|
194 | { 'BL5 ' 5 0 100.000 } |
---|
195 | { 'BL6 ' 6 0 100.000 } |
---|
196 | { 'BL7 ' 7 0 100.000 } |
---|
197 | { 'BL8 ' 8 0 100.000 } |
---|
198 | { 'BL9 ' 9 0 100.000 } |
---|
199 | { 'BL10' 10 0 100.000 } |
---|
200 | { 'BL11' 11 0 100.000 } |
---|
201 | }; |
---|
202 | |
---|