0001 function get_alpha_bucket_data
0002
0003
0004
0005 for iQ = 1:10
0006 Name = ['Q' num2str(iQ)];
0007 A = getam((Name),'Online');
0008 IQ(iQ) = A(1);
0009 end
0010 for iS = 1:10
0011 Name = ['S' num2str(iS)];
0012 A = getam((Name),'Online');
0013 IS(iS) = A(1);
0014 end
0015 IHCOR=getam('HCOR');
0016 IVCOR=getam('VCOR');
0017 machine.QP=IQ;
0018 machine.SX=IS;
0019 machine.CH=IHCOR;
0020 machine.CV=IVCOR;
0021
0022
0023
0024 cur=getdcct;
0025 tune=gettune;
0026 Frf =getrf;
0027 X=getx;
0028 Z=getz;
0029 beam.cur=cur;
0030 beam.tune=tune;
0031 beam.Frf=Frf;
0032 beam.X=X;
0033 beam.Z=Z;
0034
0035
0036
0037 temp=tango_read_attribute2('ANS-C01/DG/MRSV-IMAGEANALYZER ','XProj');MRSV_XProj=temp.value;
0038 temp=tango_read_attribute2('ANS-C01/DG/MRSV-IMAGEANALYZER ','InputImage');MRSV_Image=temp.value;
0039 MRSV.Xproj=MRSV_XProj;
0040 MRSV.image=MRSV_Image;
0041
0042
0043
0044 file=[appendtimestamp('alpha') '.mat'];
0045 save(file, 'machine' ,'beam' ,'MRSV')
0046
0047
0048
0049