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 | %% |
---|
2 | rep = tango_read_attribute2('ANS-C01/DG/BPM.5','XPosDD'); |
---|
3 | N = length(rep.value); |
---|
4 | |
---|
5 | for 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))) |
---|
23 | end |
---|
24 | |
---|
25 | %% |
---|
26 | rep = tango_read_attribute2('ANS-C05/DG/BPM.5','SumDD'); |
---|
27 | |
---|
28 | figure(41) |
---|
29 | subplot(2,1,1) |
---|
30 | plot(rep.value) |
---|
31 | |
---|
32 | rep = tango_read_attribute2('ANS-C05/DG/BPM.5','XPosDD'); |
---|
33 | |
---|
34 | subplot(2,1,2) |
---|
35 | plot(rep.value) |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.