source: MML/trunk/machine/SOLEIL/common/synchro/get_synchro_rafale.m @ 17

Last change on this file since 17 was 17, checked in by zhangj, 10 years ago

To have a stable version on the server.

  • Property svn:executable set to *
File size: 12.1 KB
Line 
1function [timing]=get_synchro_rafale(DirName)
2% step and address
3
4n=1;
5% central
6temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TPcStepDelay');
7timing.central_pc=temp.value(n);
8
9temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TInjStepDelay');
10timing.central_inj=temp.value(n);
11
12temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TSoftStepDelay');
13timing.central_soft=temp.value(n);
14
15temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TSprStepDelay');
16timing.central_spare=temp.value(n);
17
18temp=tango_read_attribute2('ANS/SY/CENTRAL', 'ExtractionOffsetClkStepValue');
19timing.central_ext=temp.value(n);
20
21
22
23% continu
24% alim
25temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'dpStepDelay');
26temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'dpEvent');
27timing.boo_dp=[temp.value(n) double(temp1.value(n))];
28
29temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qfStepDelay');
30temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qfEvent');
31timing.boo_qf=[temp.value(n) double(temp1.value(n))];
32
33temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qdStepDelay');
34temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qdEvent');
35timing.boo_qd=[temp.value(n) double(temp1.value(n))];
36
37temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'sfStepDelay');
38temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'sfEvent');
39timing.boo_sf=[temp.value(n) double(temp1.value(n))];
40
41temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'sdStepDelay');
42temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'sdEvent');
43timing.boo_sd=[temp.value(n) double(temp1.value(n))];
44
45temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'compStepDelay');
46temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'compEvent');
47timing.boo_cp=[temp.value(n) double(temp1.value(n))];
48
49temp=tango_read_attribute2('BOO/SY/LOCAL.RF.1', 'rfStepDelay');
50temp1=tango_read_attribute2('BOO/SY/LOCAL.RF.1', 'rfEvent');
51timing.boo_rf=[temp.value(n) double(temp1.value(n))];
52
53% modulateur/alim linac
54temp=tango_read_attribute2('LIN/SY/LOCAL.LPM.1', 'spareStepDelay');
55temp1=tango_read_attribute2('LIN/SY/LOCAL.LPM.1', 'spareEvent');
56timing.lin_modulateur=[temp.value(n) double(temp1.value(n))];
57
58temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'libre.1StepDelay');
59temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'libre.1Event');
60timing.lin_alim=[temp.value(n) double(temp1.value(n))];
61
62% Linac
63temp=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'oscStepDelay');
64temp1=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'oscEvent');
65timing.sdc1=[temp.value(n) double(temp1.value(n))];
66
67temp=tango_read_attribute2('LIN/SY/LOCAL.LPM.1', 'lpmStepDelay');
68temp1=tango_read_attribute2('LIN/SY/LOCAL.LPM.1', 'lpmEvent');
69timing.lin_lpm=[temp.value(n) double(temp1.value(n))];
70
71temp=tango_read_attribute2('LIN/SY/LOCAL.SPM.1', 'spmLinacStepDelay');
72temp1=tango_read_attribute2('LIN/SY/LOCAL.SPM.1', 'spmLinacEvent');
73timing.lin_spm=[temp.value(n) double(temp1.value(n))];
74
75
76% LT1
77temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'emittanceStepDelay');
78temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'emittanceEvent');
79timing.lt1_emittance=[temp.value(n) double(temp1.value(n))];
80
81temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'mc.1StepDelay');
82temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'mc.1Event');
83timing.lt1_mc1=[temp.value(n) double(temp1.value(n))];
84
85temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'mc.2StepDelay');
86temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'mc.2Event');
87timing.lt1_mc2=[temp.value(n) double(temp1.value(n))];
88
89temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'oscStepDelay');
90temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'oscEvent');
91timing.lt1_osc=[temp.value(n) double(temp1.value(n))];
92
93
94
95% Boo
96temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'dcct-booStepDelay');
97temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'dcct-booEvent');
98timing.boo_dcct=[temp.value(n) double(temp1.value(n))];
99
100temp=tango_read_attribute2('BOO/SY/LOCAL.Binj.1', 'sep-p.trigStepDelay');
101temp1=tango_read_attribute2('BOO/SY/LOCAL.Binj.1', 'sep-p.trigEvent');
102timing.boo_sep_p_inj=[temp.value(n) double(temp1.value(n))];
103
104temp=tango_read_attribute2('BOO/SY/LOCAL.Binj.1', 'k.trigStepDelay');
105temp1=tango_read_attribute2('BOO/SY/LOCAL.Binj.1', 'k.trigEvent');
106timing.boo_k_inj=[temp.value(n) double(temp1.value(n))];
107
108temp=tango_read_attribute2('BOO/SY/LOCAL.DG.1', 'bpm-bta.trigStepDelay');
109temp1=tango_read_attribute2('BOO/SY/LOCAL.DG.1', 'bpm-bta.trigEvent');
110timing.boo_bpm=[temp.value(n) double(temp1.value(n))];
111
112temp=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'bpm-onde.trigStepDelay');
113temp1=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'bpm-onde.trigEvent');
114timing.boo_nod=[temp.value(n) double(temp1.value(n))];
115
116
117
118% ext
119temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'dof.trigStepDelay');
120temp1=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'dof.trigEvent');
121timing.boo_dof_ext=[temp.value(n) double(temp1.value(n))];
122
123temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-p.trigStepDelay');
124temp1=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-p.trigEvent');
125timing.boo_sep_p_ext=[temp.value(n) double(temp1.value(n))];
126
127temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-a.trigStepDelay');
128temp1=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-a.trigEvent');
129timing.boo_sep_a_ext=[temp.value(n) double(temp1.value(n))];
130
131temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'k.trigStepDelay');
132temp1=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'k.trigEvent');
133timing.boo_k_ext=[temp.value(n) double(temp1.value(n))];
134
135temp=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'spareStepDelay');
136temp1=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'spareEvent');
137timing.sdc2=[temp.value(n) double(temp1.value(n))];
138
139temp=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'emittanceTimeDelay');
140temp1=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'emittanceEvent');
141timing.boo_mrsv=[temp.value(n) double(temp1.value(n))];
142
143
144% LT2
145temp=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'mrsvStepDelay');
146temp1=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'mrsvEvent');
147timing.lt2_emittance=[temp.value(n) double(temp1.value(n))];
148
149temp=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'osc-fctStepDelay');
150temp1=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'osc-fctEvent');
151timing.lt2_osc=[temp.value(n) double(temp1.value(n))];
152
153temp=tango_read_attribute2('LT2/SY/LOCAL.DG.2', 'bpm.trigStepDelay');
154temp1=tango_read_attribute2('LT2/SY/LOCAL.DG.2', 'bpm.trigEvent');
155timing.lt2_bpm=[temp.value(n) double(temp1.value(n))];
156
157
158% ANS
159temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigStepDelay');
160temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigEvent');
161timing.ans_k1_inj=[temp.value(n) double(temp1.value(n))];
162
163temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigStepDelay');
164temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigEvent');
165timing.ans_k2_inj=[temp.value(n) double(temp1.value(n))];
166
167temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigStepDelay');
168temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigEvent');
169timing.ans_k3_inj=[temp.value(n) double(temp1.value(n))];
170
171temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigStepDelay');
172temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigEvent');
173timing.ans_k4_inj=[temp.value(n) double(temp1.value(n))];
174
175temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-p.trigStepDelay');
176temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-p.trigEvent');
177timing.ans_sep_p_inj=[temp.value(n) double(temp1.value(n))];
178
179temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-a.trigStepDelay');
180temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-a.trigEvent');
181timing.ans_sep_a_inj=[temp.value(n) double(temp1.value(n))];
182
183
184
185
186temp=tango_read_attribute2('ANS-C01/SY/LOCAL.DG.2', 'bpm.trigStepDelay');
187temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.DG.2', 'bpm.trigEvent');
188timing.ans_bpm01=[temp.value(n) double(temp1.value(n))];
189temp=tango_read_attribute2('ANS-C02/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
190temp1=tango_read_attribute2('ANS-C02/SY/LOCAL.DG.1', 'bpm.trigEvent');
191timing.ans_bpm02=[temp.value(n) double(temp1.value(n))];
192temp=tango_read_attribute2('ANS-C03/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
193temp1=tango_read_attribute2('ANS-C03/SY/LOCAL.DG.1', 'bpm.trigEvent');
194timing.ans_bpm03=[temp.value(n) double(temp1.value(n))];
195temp=tango_read_attribute2('ANS-C04/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
196temp1=tango_read_attribute2('ANS-C04/SY/LOCAL.DG.1', 'bpm.trigEvent');
197timing.ans_bpm04=[temp.value(n) double(temp1.value(n))];
198temp=tango_read_attribute2('ANS-C05/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
199temp1=tango_read_attribute2('ANS-C05/SY/LOCAL.DG.1', 'bpm.trigEvent');
200timing.ans_bpm05=[temp.value(n) double(temp1.value(n))];
201temp=tango_read_attribute2('ANS-C06/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
202temp1=tango_read_attribute2('ANS-C06/SY/LOCAL.DG.1', 'bpm.trigEvent');
203timing.ans_bpm06=[temp.value(n) double(temp1.value(n))];
204temp=tango_read_attribute2('ANS-C07/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
205temp1=tango_read_attribute2('ANS-C07/SY/LOCAL.DG.1', 'bpm.trigEvent');
206timing.ans_bpm07=[temp.value(n) double(temp1.value(n))];
207temp=tango_read_attribute2('ANS-C08/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
208temp1=tango_read_attribute2('ANS-C08/SY/LOCAL.DG.1', 'bpm.trigEvent');
209timing.ans_bpm08=[temp.value(n) double(temp1.value(n))];
210temp=tango_read_attribute2('ANS-C09/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
211temp1=tango_read_attribute2('ANS-C09/SY/LOCAL.DG.1', 'bpm.trigEvent');
212timing.ans_bpm09=[temp.value(n) double(temp1.value(n))];
213temp=tango_read_attribute2('ANS-C10/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
214temp1=tango_read_attribute2('ANS-C10/SY/LOCAL.DG.1', 'bpm.trigEvent');
215timing.ans_bpm10=[temp.value(n) double(temp1.value(n))];
216temp=tango_read_attribute2('ANS-C11/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
217temp1=tango_read_attribute2('ANS-C11/SY/LOCAL.DG.1', 'bpm.trigEvent');
218timing.ans_bpm11=[temp.value(n) double(temp1.value(n))];
219temp=tango_read_attribute2('ANS-C12/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
220temp1=tango_read_attribute2('ANS-C12/SY/LOCAL.DG.1', 'bpm.trigEvent');
221timing.ans_bpm12=[temp.value(n) double(temp1.value(n))];
222temp=tango_read_attribute2('ANS-C13/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
223temp1=tango_read_attribute2('ANS-C13/SY/LOCAL.DG.1', 'bpm.trigEvent');
224timing.ans_bpm13=[temp.value(n) double(temp1.value(n))];
225temp=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
226temp1=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'bpm.trigEvent');
227timing.ans_bpm14=[temp.value(n) double(temp1.value(n))];
228temp=tango_read_attribute2('ANS-C15/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
229temp1=tango_read_attribute2('ANS-C15/SY/LOCAL.DG.1', 'bpm.trigEvent');
230timing.ans_bpm15=[temp.value(n) double(temp1.value(n))];
231temp=tango_read_attribute2('ANS-C16/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
232temp1=tango_read_attribute2('ANS-C16/SY/LOCAL.DG.1', 'bpm.trigEvent');
233timing.ans_bpm16=[temp.value(n) double(temp1.value(n))];
234
235%
236temp=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'perteStepDelay');
237temp1=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'perteEvent');
238timing.ans_dcct=[temp.value(n) double(temp1.value(n))];
239
240temp=tango_read_attribute2('ANS-C08/SY/LOCAL.DG.1', 'bpm.pmTimeDelay');
241temp1=tango_read_attribute2('ANS-C08/SY/LOCAL.DG.1', 'bpm.pmEvent');
242timing.ans_nod=[temp.value(n) double(temp1.value(n))];
243
244temp=tango_read_attribute2('ANS-C07/SY/LOCAL.DG.1', 'libre.1StepDelay');
245temp1=tango_read_attribute2('ANS-C07/SY/LOCAL.DG.1', 'libre.1Event');
246timing.ans_fbt=[temp.value(n) double(temp1.value(n))];
247
248
249% kicker machine
250temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-hv.pcStepDelay');
251temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-hv.pcEvent');
252timing.ans_k_hv_pc=[temp.value(n) double(temp1.value(n))];
253
254temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay');
255temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigEvent');
256timing.ans_k_v=[temp.value(n) double(temp1.value(n))];
257
258temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay');
259temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigEvent');
260timing.ans_k_h=[temp.value(n) double(temp1.value(n))];
261
262
263
264% offset
265FileName = [DirName 'synchro_offset_lin'];
266load(FileName, 'inj_offset' , 'ext_offset', 'lin_fin');
267
268timing.inj_offset=inj_offset;
269timing.ext_offset=ext_offset;
270timing.lin_fin   =lin_fin;
271
272
273
Note: See TracBrowser for help on using the repository browser.