source: MML/trunk/machine/SOLEIL/StorageRing/Lattices/lowalpha/plot_fs.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: 727 bytes
Line 
1%%
2rep = tango_read_attribute2('ANS-C01/DG/BPM.5','XPosDD');
3N = length(rep.value);
4
5for k =1:1000,
6    Xvalue = zeros(1,N);
7    for ik =1:3, % averaging
8        rep = tango_read_attribute2('ANS-C01/DG/BPM.5','XPosDD');
9        Xvalue = Xvalue + rep.value;
10        pause(0.3)
11    end
12
13    Xvalue = Xvalue/3;
14
15    frev = getrf/416;
16    figure(23);
17    plot((1:N)/N*frev*1e6/64,abs(fft(Xvalue)))
18    xaxis([300 1200]); yaxis([0 0.5e3])
19    grid on
20    xlabel('Frequency Hz')
21    %pause(1)
22    %[a ind] = max(abs(fft(rep.value)))
23end
24
25%%
26rep = tango_read_attribute2('ANS-C05/DG/BPM.5','SumDD');
27
28figure(41)
29subplot(2,1,1)
30plot(rep.value)
31
32rep = tango_read_attribute2('ANS-C05/DG/BPM.5','XPosDD');
33
34subplot(2,1,2)
35plot(rep.value)
36
Note: See TracBrowser for help on using the repository browser.