source: MML/trunk/machine/SOLEIL/common/synchro/set_bump_optim.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: 866 bytes
Line 
1function set_bump_optim
2
3% deuxiÚme optimisation du bump
4
5%delai0 =31522246; 
6delai0 =5621670;
7voltage0=3000; 
8r=0.90   % ratio global
9r1=1.010  % ratio 2 derniers kicker
10
11k=+0;
12
13tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k1.trigStepDelay',delai0-0     + k);
14tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k2.trigStepDelay',delai0+3    + k);
15tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k3.trigStepDelay',delai0+2    + k);
16tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1', 'k4.trigStepDelay',delai0-1    + k);
17
18
19tango_write_attribute2('ANS-C01/EP/AL_K.1', 'voltage',(((6240+0)*r)   +80) );
20tango_write_attribute2('ANS-C01/EP/AL_K.2', 'voltage',(((6200-0)*r)   -40  ) );
21tango_write_attribute2('ANS-C01/EP/AL_K.3', 'voltage',(((6050+0)*r)*r1+90  ) );
22tango_write_attribute2('ANS-C01/EP/AL_K.4', 'voltage',(((6200+0)*r)*r1-70  ) );
23
24
25
26return
27
28
29
Note: See TracBrowser for help on using the repository browser.