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 | |
---|
1 | function 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') |
---|
5 | File='/home/operateur/GrpGMI/Trend_InVac.txt'; |
---|
6 | File1='/home/operateur/GrpGMI/Trend_InVac_test.txt'; |
---|
7 | fidread = fopen(File,'r'); |
---|
8 | fidwrite = fopen(File1,'w'); |
---|
9 | for 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); |
---|
17 | end |
---|
18 | fclose(fidread); |
---|
19 | fclose(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 | |
---|
26 | end |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.