source: MML/trunk/applications/orbit/aspbooster/asprestore.m

Last change on this file was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 9.4 KB
Line 
1%system parameter save file
2%timestamp: 18-Jan-2002 08:08:08
3%comment: Save System
4ad=getad;
5filetype         = 'RESTORE';      %check to see if correct file type
6sys.machine      = 'ASPBooster';       %machine for control
7sys.mode         = 'ONLINE';       %online or simulator
8sys.datamode     = 'REAL';         %raw or real (for real: (1)response matrix multiplied by bpm gains, (2) BPM reads have gain, offset
9sys.bpmode       = 'Bergoz';       %BPM system mode
10sys.bpmslp       = 3.0;            %BPM sleep time in sec
11sys.plane        = 1;              %plane (1=horizontal 2=vertical)
12sys.algo         = 'SVD';          %fitting algorithm
13sys.pbpm         = 1;              %use of photon BPMs
14sys.filpath      = ad.Directory.Orbit;       %file path in MATLAB
15sys.respfiledir  = ad.Directory.OpsData;                                           %response matrix directory
16sys.respfilename = ad.OpsData.BPMRespFile;
17sys.dispfiledir  = ad.Directory.OpsData;                                           %dispersion directory
18sys.dispfilename = ad.OpsData.DispFile;                                            %dispersion file
19sys.mxs          = 130.2;            %maximum ring circumference
20sys.xlimax       = 130.2;            %abcissa plot limit
21sys.mxphi(1)     = 10;              %maximum horizontal phase advance
22sys.mxphi(2)     = 4;              %maximum vertical phase advance
23sys.xscale       = 'meter';        %abcissa plotting mode (meter or phase)
24 
25%*=== HORIZONTAL DATA ===*
26bpm(1).dev      = 10;              %maximum orbit deviation
27bpm(1).drf      = 0;               %dispersion component zero
28bpm(1).id       = 1;               %BPM selection
29bpm(1).scalemode= 0;               %BPM scale mode 0=manual mode, 1=autoscale
30bpm(1).ylim     = 0.5;             %BPM vertical axis scale
31cor(1).fract    = 1.0;             %fraction of correctors
32cor(1).id=1;                       %COR selection
33cor(1).scalemode=0;                %COR scale mode 0=manual mode, 1=autoscale
34cor(1).ylim     = 30;              %COR horizontal axis scale (amp)
35rsp(1).disp     = 'off';           %mode for matrix column display
36rsp(1).eig      = 'off';           %mode for eigenvector display
37rsp(1).fit      = 0;               %valid fit flag
38rsp(1).rfflag   = 1;               %rf fitting flag
39rsp(1).rfcorflag= 1;               %fitting flag for rf component in correctors
40rsp(1).savflag  = 0;               %save solution flag
41rsp(1).nsvd     = 54;              %number of singular values
42rsp(1).svdtol   = 0;               %svd tolerance (0 uses number of singular values)
43rsp(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
47etaxwt=0.0;
48%     name       index  fit (0/1) weight etaweight
49bpmx={
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
87corx={
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 ===*
115BPMx(2).dev=10;          %maximum orbit deviation
116BPMx(2).drf=0;           %dispersion component zero
117BPMx(2).id=1;            %BPMx selection
118BPMx(2).scalemode=0;     %BPMx scale mode 0=manual mode, 1=autoscale
119BPMx(2).ylim=0.25;       %BPMx vertical axis scale
120cor(2).fract=1.0;       %fraction of correctors
121cor(2).id  =1;            %COR selection
122cor(2).scalemode=0;     %COR scale mode 0=manual mode, 1=autoscale
123cor(2).ylim =30;         %COR vertical axis scale (amp)
124rsp(2).disp ='off';     %mode for matrix column display
125rsp(2).eig  ='off';     %mode for eigenvector display
126rsp(2).fit  =0;         %valid fit flag
127rsp(2).rfflag=1;        %rf fitting flag
128rsp(2).rfcorflag= 1;    %fitting flag for rf component in correctors
129rsp(2).savflag=0;       %save solution flag
130rsp(2).nsvd=54;         %number of singular values
131rsp(2).svdtol=0;        %svd tolerance (0 uses number of singular values)
132rsp(2).nsvdmx=1;        %default maximum number of singular values
133 
134etaywt=50;  %nominal response ~0.25 peak, 5kHz difference ~0.0025 peak (factor 100)
135%     name       index  fit (0/1) weight   etaweight
136bpmy={
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
172cory={
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
189bly={
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 
Note: See TracBrowser for help on using the repository browser.