Last change
on this file since 17 was
17,
checked in by zhangj, 11 years ago
|
To have a stable version on the server.
|
-
Property svn:executable set to
*
|
File size:
667 bytes
|
Line | |
---|
1 | function plotnuFBT |
---|
2 | %PLOTNUFBT - plot tune excited with FBT |
---|
3 | % |
---|
4 | % |
---|
5 | |
---|
6 | %% Written by Laurent S. Nadolski |
---|
7 | |
---|
8 | devName = 'ans/rf/bbfdataviewer.1-tunex'; |
---|
9 | rep = tango_read_attributes2(devName, {'FFTabs','FFTord'}); |
---|
10 | xvectZ = rep(1).value; |
---|
11 | zvectZ = rep(2).value; |
---|
12 | |
---|
13 | devName = 'ans/rf/bbfdataviewer.2-tunez'; |
---|
14 | rep = tango_read_attributes2(devName, {'FFTabs','FFTord'}); |
---|
15 | xvectX = rep(1).value; |
---|
16 | zvectX = rep(2).value; |
---|
17 | |
---|
18 | %% |
---|
19 | |
---|
20 | figure; |
---|
21 | subplot(2,1,1) |
---|
22 | semilogy(xvectX, zvectX); grid on |
---|
23 | yaxis([1e-10 1]) |
---|
24 | xlabel('Qx') |
---|
25 | |
---|
26 | subplot(2,1,2) |
---|
27 | semilogy(xvectZ, zvectZ); grid on |
---|
28 | yaxis([1e-10 1]) |
---|
29 | xlabel('Qz') |
---|
30 | |
---|
31 | nu = gettuneFBT; |
---|
32 | suptitle(sprintf('Betatron Tune from FTB: Qx= %5.4f, Qz = %5.4f', nu(1), nu(2))) |
---|
Note: See
TracBrowser
for help on using the repository browser.