source: MML/trunk/machine/SOLEIL/StorageRing/insertions/AnalyseOnAxisIntegralAndFixTheGapStep.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: 1.1 KB
Line 
1function AnalyseOrbitAndFixTheGapStep(SESSION,CellName,SSType,UndType,TableName,OrbitMax)
2UndNameAndPath=['/usr/Local/configFiles/InsertionFFTables/' CellName '-' UndType '/' TableName]
3ID_param=importdata(UndNameAndPath);
4param_length=length(ID_param);
5t0=1; % time between points
6
7% ID_param(i,j):
8%               ID_param(1,j): line corresponding to the gap for any value of j
9%               ID_param(2,j): line corresponding to CHE for any value of j
10%               ID_param(3,j): line corresponding to CHS for any value of j
11%               ID_param(4,j): line corresponding to CVE for any value of j
12%               ID_param(5,j): line corresponding to CVS for any value of j
13%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14% ATTRIBUTE OF THE INSERTION DEVICE
15%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16idDevServGap=[CellName '/ei/' SSType '-' UndType '/gap'];
17idDevServDiag=[CellName '/DG/CALC-SD' SSType '-POSITION-ANGLE/positionX']
18for j=param_length:-1:1
19    Gap(j)=ID_param(1,j)
20%    writeattribute(idDevServGap,Gap(j));
21    pause(t0);
22    readattribute(idDevServDiag,PosX(j));
23end
24Gradient=diff(PosX)./diff(Gap);
25end
Note: See TracBrowser for help on using the repository browser.