source: MML/trunk/machine/SOLEIL/common/synchro/step_synchro_rafale.m @ 4

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

Initial import--MML version from SOLEIL@2013

File size: 6.7 KB
Line 
1function step_synchro_rafale(DirName)
2% step central and delay on address 3 only
3
4 n=1;
5% % central
6% temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TPcStepDelay');
7% timing.central_pc=temp.value(n);
8%
9% temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TInjStepDelay');
10% timing.central_inj=temp.value(n);
11%
12% temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TSoftStepDelay');
13% timing.central_soft=temp.value(n);
14%
15% temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TSprStepDelay');
16% timing.central_spare=temp.value(n);
17%
18% temp=tango_read_attribute2('ANS/SY/CENTRAL', 'ExtractionOffsetClkStepValue');
19% timing.central_ext=temp.value(n);
20
21offsettime=70000;
22offset=176*offsettime;
23
24
25% ext on add 3
26
27temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'dof.trigStepDelay');
28tango_write_attribute2('BOO/SY/LOCAL.Bext.1', 'dof.trigStepDelay',temp.value(1)+offset);
29
30
31temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-p.trigStepDelay');
32tango_write_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-p.trigStepDelay',temp.value(1)+offset);
33
34temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-a.trigStepDelay');
35tango_write_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-a.trigStepDelay',temp.value(1)+offset);
36
37
38temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'k.trigStepDelay');
39tango_write_attribute2('BOO/SY/LOCAL.Bext.1', 'k.trigStepDelay',temp.value(1)+offset);
40
41temp=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'spareStepDelay');
42tango_write_attribute2('ANS/SY/LOCAL.SDC.1', 'spareStepDelay',temp.value(1)+offset);
43
44temp=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'emittanceTimeDelay');
45tango_write_attribute2('BOO/SY/LOCAL.DG.3', 'emittanceTimeDelay',temp.value(1)+offset);
46
47% LT2
48temp=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'mrsvStepDelay');
49tango_write_attribute2('LT2/SY/LOCAL.DG.1', 'mrsvStepDelay',temp.value(1)+offset);
50
51temp=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'osc-fctStepDelay');
52tango_write_attribute2('LT2/SY/LOCAL.DG.1', 'osc-fctStepDelay',temp.value(1)+offset);
53
54temp=tango_read_attribute2('LT2/SY/LOCAL.DG.2', 'bpm.trigStepDelay');
55tango_write_attribute2('LT2/SY/LOCAL.DG.2', 'bpm.trigStepDelay',temp.value(1)+offset);
56
57% ANS
58temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigStepDelay');
59tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigStepDelay',temp.value(1)+offset);
60
61temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigStepDelay');
62tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigStepDelay',temp.value(1)+offset);
63
64temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigStepDelay');
65tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigStepDelay',temp.value(1)+offset);
66
67temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigStepDelay');
68tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigStepDelay',temp.value(1)+offset);
69
70temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-p.trigStepDelay');
71tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-p.trigStepDelay',temp.value(1)+offset);
72
73temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-a.trigStepDelay');
74tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-a.trigStepDelay',temp.value(1)+offset);
75
76
77temp=tango_read_attribute2('ANS-C01/SY/LOCAL.DG.2', 'bpm.trigStepDelay');
78tango_write_attribute2('ANS-C01/SY/LOCAL.DG.2', 'bpm.trigStepDelay',temp.value(1)+offset);
79
80temp=tango_read_attribute2('ANS-C02/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
81tango_write_attribute2('ANS-C02/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
82
83temp=tango_read_attribute2('ANS-C03/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
84tango_write_attribute2('ANS-C03/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
85
86temp=tango_read_attribute2('ANS-C04/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
87tango_write_attribute2('ANS-C04/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
88
89temp=tango_read_attribute2('ANS-C05/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
90tango_write_attribute2('ANS-C05/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
91
92temp=tango_read_attribute2('ANS-C06/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
93tango_write_attribute2('ANS-C06/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
94
95
96temp=tango_read_attribute2('ANS-C07/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
97tango_write_attribute2('ANS-C07/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
98
99temp=tango_read_attribute2('ANS-C08/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
100tango_write_attribute2('ANS-C08/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
101
102temp=tango_read_attribute2('ANS-C09/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
103tango_write_attribute2('ANS-C09/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
104
105temp=tango_read_attribute2('ANS-C10/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
106tango_write_attribute2('ANS-C10/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
107
108temp=tango_read_attribute2('ANS-C11/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
109tango_write_attribute2('ANS-C11/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
110
111temp=tango_read_attribute2('ANS-C12/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
112tango_write_attribute2('ANS-C12/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
113
114temp=tango_read_attribute2('ANS-C13/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
115tango_write_attribute2('ANS-C13/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
116
117temp=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
118tango_write_attribute2('ANS-C14/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
119
120temp=tango_read_attribute2('ANS-C15/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
121tango_write_attribute2('ANS-C15/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
122
123
124temp=tango_read_attribute2('ANS-C16/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
125tango_write_attribute2('ANS-C16/SY/LOCAL.DG.1', 'bpm.trigStepDelay',temp.value(1)+offset);
126
127%
128temp=tango_read_attribute2('ANS-C13/SY/LOCAL.DG.1', 'dcctStepDelay');
129tango_write_attribute2('ANS-C13/SY/LOCAL.DG.1', 'dcctStepDelay',temp.value(1)+offset);
130
131temp=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'perteTimeDelay');
132tango_write_attribute2('ANS-C14/SY/LOCAL.DG.1', 'perteTimeDelay',temp.value(1)+offset);
133
134% kicker machine
135temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-hv.pcStepDelay');
136tango_write_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-hv.pcStepDelay',temp.value(1)+offset);
137
138
139temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay');
140tango_write_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay',temp.value(1)+offset);
141
142temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay');
143tango_write_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay',temp.value(1)+offset);
144
145
146% offset
147FileName = [DirName 'synchro_offset_lin'];
148load(FileName, 'inj_offset' , 'ext_offset', 'lin_fin');
149ext_offset=ext_offset+offsettime;
150save(FileName, 'inj_offset' , 'ext_offset', 'lin_fin');
151
152
Note: See TracBrowser for help on using the repository browser.