0001 function [timing]=get_synchro_rafale(DirName)
0002
0003
0004 n=1;
0005
0006 temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TPcStepDelay');
0007 timing.central_pc=temp.value(n);
0008
0009 temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TInjStepDelay');
0010 timing.central_inj=temp.value(n);
0011
0012 temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TSoftStepDelay');
0013 timing.central_soft=temp.value(n);
0014
0015 temp=tango_read_attribute2('ANS/SY/CENTRAL', 'TSprStepDelay');
0016 timing.central_spare=temp.value(n);
0017
0018 temp=tango_read_attribute2('ANS/SY/CENTRAL', 'ExtractionOffsetClkStepValue');
0019 timing.central_ext=temp.value(n);
0020
0021
0022
0023
0024
0025 temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'dpStepDelay');
0026 temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'dpEvent');
0027 timing.boo_dp=[temp.value(n) double(temp1.value(n))];
0028
0029 temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qfStepDelay');
0030 temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qfEvent');
0031 timing.boo_qf=[temp.value(n) double(temp1.value(n))];
0032
0033 temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qdStepDelay');
0034 temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qdEvent');
0035 timing.boo_qd=[temp.value(n) double(temp1.value(n))];
0036
0037 temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'sfStepDelay');
0038 temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'sfEvent');
0039 timing.boo_sf=[temp.value(n) double(temp1.value(n))];
0040
0041 temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'sdStepDelay');
0042 temp1=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'sdEvent');
0043 timing.boo_sd=[temp.value(n) double(temp1.value(n))];
0044
0045 temp=tango_read_attribute2('BOO/SY/LOCAL.RF.1', 'rfStepDelay');
0046 temp1=tango_read_attribute2('BOO/SY/LOCAL.RF.1', 'rfEvent');
0047 timing.boo_rf=[temp.value(n) double(temp1.value(n))];
0048
0049
0050 temp=tango_read_attribute2('LIN/SY/LOCAL.LPM.1', 'spareStepDelay');
0051 temp1=tango_read_attribute2('LIN/SY/LOCAL.LPM.1', 'spareEvent');
0052 timing.lin_modulateur=[temp.value(n) double(temp1.value(n))];
0053
0054 temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'libre.1StepDelay');
0055 temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'libre.1Event');
0056 timing.lin_alim=[temp.value(n) double(temp1.value(n))];
0057
0058
0059 temp=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'oscStepDelay');
0060 temp1=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'oscEvent');
0061 timing.sdc1=[temp.value(n) double(temp1.value(n))];
0062
0063 temp=tango_read_attribute2('LIN/SY/LOCAL.LPM.1', 'lpmStepDelay');
0064 temp1=tango_read_attribute2('LIN/SY/LOCAL.LPM.1', 'lpmEvent');
0065 timing.lin_lpm=[temp.value(n) double(temp1.value(n))];
0066
0067 temp=tango_read_attribute2('LIN/SY/LOCAL.SPM.1', 'spmLinacStepDelay');
0068 temp1=tango_read_attribute2('LIN/SY/LOCAL.SPM.1', 'spmLinacEvent');
0069 timing.lin_spm=[temp.value(n) double(temp1.value(n))];
0070
0071
0072
0073 temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'emittanceStepDelay');
0074 temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'emittanceEvent');
0075 timing.lt1_emittance=[temp.value(n) double(temp1.value(n))];
0076
0077 temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'mc.1StepDelay');
0078 temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'mc.1Event');
0079 timing.lt1_mc1=[temp.value(n) double(temp1.value(n))];
0080
0081 temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'mc.2StepDelay');
0082 temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'mc.2Event');
0083 timing.lt1_mc2=[temp.value(n) double(temp1.value(n))];
0084
0085 temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'oscStepDelay');
0086 temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'oscEvent');
0087 timing.lt1_osc=[temp.value(n) double(temp1.value(n))];
0088
0089
0090
0091
0092 temp=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'dcct-booStepDelay');
0093 temp1=tango_read_attribute2('LT1/SY/LOCAL.DG.1', 'dcct-booEvent');
0094 timing.boo_dcct=[temp.value(n) double(temp1.value(n))];
0095
0096 temp=tango_read_attribute2('BOO/SY/LOCAL.Binj.1', 'sep-p.trigStepDelay');
0097 temp1=tango_read_attribute2('BOO/SY/LOCAL.Binj.1', 'sep-p.trigEvent');
0098 timing.boo_sep_p_inj=[temp.value(n) double(temp1.value(n))];
0099
0100 temp=tango_read_attribute2('BOO/SY/LOCAL.Binj.1', 'k.trigStepDelay');
0101 temp1=tango_read_attribute2('BOO/SY/LOCAL.Binj.1', 'k.trigEvent');
0102 timing.boo_k_inj=[temp.value(n) double(temp1.value(n))];
0103
0104 temp=tango_read_attribute2('BOO/SY/LOCAL.DG.1', 'bpm-bta.trigStepDelay');
0105 temp1=tango_read_attribute2('BOO/SY/LOCAL.DG.1', 'bpm-bta.trigEvent');
0106 timing.boo_bpm=[temp.value(n) double(temp1.value(n))];
0107
0108 temp=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'bpm-onde.trigStepDelay');
0109 temp1=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'bpm-onde.trigEvent');
0110 timing.boo_nod=[temp.value(n) double(temp1.value(n))];
0111
0112
0113
0114
0115 temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'dof.trigStepDelay');
0116 temp1=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'dof.trigEvent');
0117 timing.boo_dof_ext=[temp.value(n) double(temp1.value(n))];
0118
0119 temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-p.trigStepDelay');
0120 temp1=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-p.trigEvent');
0121 timing.boo_sep_p_ext=[temp.value(n) double(temp1.value(n))];
0122
0123 temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-a.trigStepDelay');
0124 temp1=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'sep-a.trigEvent');
0125 timing.boo_sep_a_ext=[temp.value(n) double(temp1.value(n))];
0126
0127 temp=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'k.trigStepDelay');
0128 temp1=tango_read_attribute2('BOO/SY/LOCAL.Bext.1', 'k.trigEvent');
0129 timing.boo_k_ext=[temp.value(n) double(temp1.value(n))];
0130
0131 temp=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'spareStepDelay');
0132 temp1=tango_read_attribute2('ANS/SY/LOCAL.SDC.1', 'spareEvent');
0133 timing.sdc2=[temp.value(n) double(temp1.value(n))];
0134
0135 temp=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'emittanceTimeDelay');
0136 temp1=tango_read_attribute2('BOO/SY/LOCAL.DG.3', 'emittanceEvent');
0137 timing.boo_mrsv=[temp.value(n) double(temp1.value(n))];
0138
0139
0140
0141 temp=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'mrsvStepDelay');
0142 temp1=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'mrsvEvent');
0143 timing.lt2_emittance=[temp.value(n) double(temp1.value(n))];
0144
0145 temp=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'osc-fctStepDelay');
0146 temp1=tango_read_attribute2('LT2/SY/LOCAL.DG.1', 'osc-fctEvent');
0147 timing.lt2_osc=[temp.value(n) double(temp1.value(n))];
0148
0149 temp=tango_read_attribute2('LT2/SY/LOCAL.DG.2', 'bpm.trigStepDelay');
0150 temp1=tango_read_attribute2('LT2/SY/LOCAL.DG.2', 'bpm.trigEvent');
0151 timing.lt2_bpm=[temp.value(n) double(temp1.value(n))];
0152
0153
0154
0155 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigStepDelay');
0156 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigEvent');
0157 timing.ans_k1_inj=[temp.value(n) double(temp1.value(n))];
0158
0159 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigStepDelay');
0160 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigEvent');
0161 timing.ans_k2_inj=[temp.value(n) double(temp1.value(n))];
0162
0163 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigStepDelay');
0164 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigEvent');
0165 timing.ans_k3_inj=[temp.value(n) double(temp1.value(n))];
0166
0167 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigStepDelay');
0168 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigEvent');
0169 timing.ans_k4_inj=[temp.value(n) double(temp1.value(n))];
0170
0171 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-p.trigStepDelay');
0172 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-p.trigEvent');
0173 timing.ans_sep_p_inj=[temp.value(n) double(temp1.value(n))];
0174
0175 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-a.trigStepDelay');
0176 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.2', 'sep-a.trigEvent');
0177 timing.ans_sep_a_inj=[temp.value(n) double(temp1.value(n))];
0178
0179
0180
0181 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.DG.2', 'bpm.trigStepDelay');
0182 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.DG.2', 'bpm.trigEvent');
0183 timing.ans_bpm=[temp.value(n) double(temp1.value(n))];
0184 timing.ans_bpm01=[temp.value(n) double(temp1.value(n))];
0185
0186 temp=tango_read_attribute2('ANS-C02/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0187 temp1=tango_read_attribute2('ANS-C02/SY/LOCAL.DG.1', 'bpm.trigEvent');
0188 timing.ans_bpm02=[temp.value(n) double(temp1.value(n))];
0189 temp=tango_read_attribute2('ANS-C03/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0190 temp1=tango_read_attribute2('ANS-C03/SY/LOCAL.DG.1', 'bpm.trigEvent');
0191 timing.ans_bpm03=[temp.value(n) double(temp1.value(n))];
0192 temp=tango_read_attribute2('ANS-C04/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0193 temp1=tango_read_attribute2('ANS-C04/SY/LOCAL.DG.1', 'bpm.trigEvent');
0194 timing.ans_bpm04=[temp.value(n) double(temp1.value(n))];
0195 temp=tango_read_attribute2('ANS-C05/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0196 temp1=tango_read_attribute2('ANS-C05/SY/LOCAL.DG.1', 'bpm.trigEvent');
0197 timing.ans_bpm05=[temp.value(n) double(temp1.value(n))];
0198 temp=tango_read_attribute2('ANS-C06/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0199 temp1=tango_read_attribute2('ANS-C06/SY/LOCAL.DG.1', 'bpm.trigEvent');
0200 timing.ans_bpm06=[temp.value(n) double(temp1.value(n))];
0201 temp=tango_read_attribute2('ANS-C07/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0202 temp1=tango_read_attribute2('ANS-C07/SY/LOCAL.DG.1', 'bpm.trigEvent');
0203 timing.ans_bpm07=[temp.value(n) double(temp1.value(n))];
0204 temp=tango_read_attribute2('ANS-C08/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0205 temp1=tango_read_attribute2('ANS-C08/SY/LOCAL.DG.1', 'bpm.trigEvent');
0206 timing.ans_bpm08=[temp.value(n) double(temp1.value(n))];
0207 temp=tango_read_attribute2('ANS-C09/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0208 temp1=tango_read_attribute2('ANS-C09/SY/LOCAL.DG.1', 'bpm.trigEvent');
0209 timing.ans_bpm09=[temp.value(n) double(temp1.value(n))];
0210 temp=tango_read_attribute2('ANS-C10/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0211 temp1=tango_read_attribute2('ANS-C10/SY/LOCAL.DG.1', 'bpm.trigEvent');
0212 timing.ans_bpm10=[temp.value(n) double(temp1.value(n))];
0213 temp=tango_read_attribute2('ANS-C11/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0214 temp1=tango_read_attribute2('ANS-C11/SY/LOCAL.DG.1', 'bpm.trigEvent');
0215 timing.ans_bpm11=[temp.value(n) double(temp1.value(n))];
0216 temp=tango_read_attribute2('ANS-C12/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0217 temp1=tango_read_attribute2('ANS-C12/SY/LOCAL.DG.1', 'bpm.trigEvent');
0218 timing.ans_bpm12=[temp.value(n) double(temp1.value(n))];
0219 temp=tango_read_attribute2('ANS-C13/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0220 temp1=tango_read_attribute2('ANS-C13/SY/LOCAL.DG.1', 'bpm.trigEvent');
0221 timing.ans_bpm13=[temp.value(n) double(temp1.value(n))];
0222 temp=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0223 temp1=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'bpm.trigEvent');
0224 timing.ans_bpm14=[temp.value(n) double(temp1.value(n))];
0225 temp=tango_read_attribute2('ANS-C15/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0226 temp1=tango_read_attribute2('ANS-C15/SY/LOCAL.DG.1', 'bpm.trigEvent');
0227 timing.ans_bpm15=[temp.value(n) double(temp1.value(n))];
0228 temp=tango_read_attribute2('ANS-C16/SY/LOCAL.DG.1', 'bpm.trigStepDelay');
0229 temp1=tango_read_attribute2('ANS-C16/SY/LOCAL.DG.1', 'bpm.trigEvent');
0230 timing.ans_bpm16=[temp.value(n) double(temp1.value(n))];
0231
0232
0233 temp=tango_read_attribute2('ANS-C13/SY/LOCAL.DG.1', 'dcctStepDelay');
0234 temp1=tango_read_attribute2('ANS-C13/SY/LOCAL.DG.1', 'dcctEvent');
0235 timing.ans_dcct=[temp.value(n) double(temp1.value(n))];
0236
0237 temp=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'perteTimeDelay');
0238 temp1=tango_read_attribute2('ANS-C14/SY/LOCAL.DG.1', 'perteEvent');
0239 timing.ans_nod=[temp.value(n) double(temp1.value(n))];
0240
0241
0242 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-hv.pcStepDelay');
0243 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-hv.pcEvent');
0244 timing.ans_k_hv_pc=[temp.value(n) double(temp1.value(n))];
0245
0246 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay');
0247 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigEvent');
0248 timing.ans_k_v=[temp.value(n) double(temp1.value(n))];
0249
0250 temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay');
0251 temp1=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigEvent');
0252 timing.ans_k_h=[temp.value(n) double(temp1.value(n))];
0253
0254
0255
0256
0257 FileName = [DirName 'synchro_offset_lin'];
0258 load(FileName, 'inj_offset' , 'ext_offset', 'lin_fin');
0259
0260 timing.inj_offset=inj_offset;
0261 timing.ext_offset=ext_offset;
0262 timing.lin_fin =lin_fin;
0263
0264
0265