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