source: MML/trunk/machine/SOLEIL/common/synchro/set_bump_test5_2009.m @ 17

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: 1.4 KB
Line 
1function set_bump_test5_2009
2
3% deuxiÚme optimisation du bump
4
5% standard run 2
6tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigStepDelay'); % 5621670
7tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigStepDelay'); % 5621673
8tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigStepDelay'); % 5621674
9tango_read_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigStepDelay'); % 5621670
10
11tango_read_attribute2('ANS-C01/EP/AL_K.1', 'voltage' ); % 5.8064e+03
12tango_read_attribute2('ANS-C01/EP/AL_K.2', 'voltage');  % 5.8685e+03
13tango_read_attribute2('ANS-C01/EP/AL_K.3', 'voltage');  % 5.8153e+03
14tango_read_attribute2('ANS-C01/EP/AL_K.4', 'voltage');  % 5.8034e+03
15
16
17%delai0 =31522246; 
18delai0 =5621670;
19voltage0=3000; 
20r=1.04;    % ratio global
21r1=1.0 ; % ratio 2 derniers kicker
22
23k=-0;
24
25tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigStepDelay',delai0-0    + k);
26tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigStepDelay',delai0+2    + k);
27tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigStepDelay',delai0+3    + k);
28tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigStepDelay',delai0-2    + k);
29
30
31tango_write_attribute2('ANS-C01/EP/AL_K.1', 'voltage',5591*r-10 - 10);
32tango_write_attribute2('ANS-C01/EP/AL_K.2', 'voltage',5630*r+10 - 10 );
33tango_write_attribute2('ANS-C01/EP/AL_K.3', 'voltage',(5592*r-10 + 20)*r1 );
34tango_write_attribute2('ANS-C01/EP/AL_K.4', 'voltage',(5566*r+05 - 15)*r1 );
35
36
37
38return
39
40
41
Note: See TracBrowser for help on using the repository browser.