source: MML/trunk/machine/SOLEIL/StorageRing/get_alpha_bucket_data.m @ 17

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

To have a stable version on the server.

  • Property svn:executable set to *
File size: 865 bytes
Line 
1function get_alpha_bucket_data
2% just get setpoint and MRSV and pinhole
3
4% ans setpoint
5for iQ = 1:10
6    Name = ['Q' num2str(iQ)];
7    A = getam((Name),'Online');
8    IQ(iQ) = A(1);
9end
10for iS = 1:10
11    Name = ['S' num2str(iS)];
12    A = getam((Name),'Online');
13    IS(iS) = A(1);
14end
15IHCOR=getam('HCOR');
16IVCOR=getam('VCOR');
17machine.QP=IQ;
18machine.SX=IS;
19machine.CH=IHCOR;
20machine.CV=IVCOR;
21
22
23% ans data
24cur=getdcct;
25tune=gettune;
26Frf =getrf;
27X=getx;
28Z=getz;
29beam.cur=cur;
30beam.tune=tune;
31beam.Frf=Frf;
32beam.X=X;
33beam.Z=Z;
34
35
36% MRSV
37temp=tango_read_attribute2('ANS-C01/DG/MRSV-IMAGEANALYZER ','XProj');MRSV_XProj=temp.value;
38temp=tango_read_attribute2('ANS-C01/DG/MRSV-IMAGEANALYZER ','InputImage');MRSV_Image=temp.value;
39MRSV.Xproj=MRSV_XProj;
40MRSV.image=MRSV_Image;
41
42
43%save data
44file=[appendtimestamp('alpha') '.mat'];
45save(file, 'machine' ,'beam' ,'MRSV')
46
47
48
49
Note: See TracBrowser for help on using the repository browser.