source: MML/trunk/machine/SOLEIL/StorageRing/tune/plotnuFBT.m @ 4

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: 667 bytes
Line 
1function plotnuFBT
2%PLOTNUFBT - plot tune excited with FBT
3%
4%
5
6%% Written by Laurent S. Nadolski
7
8devName = 'ans/rf/bbfdataviewer.1-tunex';
9rep = tango_read_attributes2(devName, {'FFTabs','FFTord'});
10xvectZ = rep(1).value;
11zvectZ = rep(2).value;
12
13devName = 'ans/rf/bbfdataviewer.2-tunez';
14rep = tango_read_attributes2(devName, {'FFTabs','FFTord'});
15xvectX = rep(1).value;
16zvectX = rep(2).value;
17
18%%
19
20figure;
21subplot(2,1,1)
22semilogy(xvectX, zvectX); grid on
23yaxis([1e-10 1])
24xlabel('Qx')
25
26subplot(2,1,2)
27semilogy(xvectZ, zvectZ); grid on
28yaxis([1e-10 1])
29xlabel('Qz')
30
31nu = gettuneFBT;
32suptitle(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.