source: MML/trunk/machine/SOLEIL/StorageRing/insertions/SaveBumpOrbit.m @ 4

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

Initial import--MML version from SOLEIL@2013

File size: 749 bytes
Line 
1function ReadTrendParam(CellName,SSType,IDName)
2% CellName: Name of Cell: ex: 'ANS-C03'
3% SSType: Type of Cell: 'C', 'M' or 'L'
4% example: ReadTrendParam('ANS-C03','C','WSV50')
5File='/home/operateur/GrpGMI/Trend_InVac.txt';
6File1='/home/operateur/GrpGMI/Trend_InVac_test.txt';
7fidread = fopen(File,'r');
8fidwrite = fopen(File1,'w');
9for j=1:1:116
10    A = fgetl(fidread);
11    if (j==60)
12        A=
13    end
14
15    if j=60
16    fprintf(fidwrite,'%s\n', A);
17end
18fclose(fidread);
19fclose(fidwrite);
20
21
22%Trend_param(60)=['dv0_name:'CellName '/EI/' SSType '-' IDName '/gap']
23%Trend_param(79)=['dv1_name:' CellName '/DG/CALC-SD' SSType '-POSITION-ANGLE/positionX']
24%Trend_param(98)=['dv2_name:'CellName '/DG/CALC-SD' SSType '-POSITION-ANGLE/positionZ']
25
26end
27   
Note: See TracBrowser for help on using the repository browser.