source: MML/trunk/machine/SOLEIL/Booster/applications/set66MeV.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.1 KB
Line 
1% scale some setpoint pour le mode linac dégradé MeV
2
3%%
4E1=110; % Nominal
5E2=69; % dégradée
6
7
8%% save start value only once warning to not over write
9HCOR=getsp('HCOR');
10VCOR=getsp('VCOR');
11temp=tango_read_attribute2('BOO-C01/EP/AL_K.Inj','voltage');kicker=temp.value(2);
12temp=tango_read_attribute2('BOO-C22/EP/AL_SEP_P.Inj','voltage');septum=temp.value(2);
13temp=tango_read_attribute('LT1/AE/CV.2', 'current');cv2=temp.value(2);
14temp=tango_read_attribute('LT1/AE/CV.3', 'current');cv3=temp.value(2);
15save data_110MeV.mat HCOR VCOR kicker septum cv2 cv3
16
17return
18
19%% Apply scaling
20r=E2/E1
21kicker1=6600 *r;
22sept1 =194.9*r;
23HCOR1=HCOR*r;
24VCOR1=VCOR*r;
25cv21=cv2*r;
26cv31=cv3*r;
27
28writeattribute('BOO-C01/EP/AL_K.Inj/voltage',kicker1);
29writeattribute('BOO-C22/EP/AL_SEP_P.Inj/voltage',sept1);
30setsp('HCOR', HCOR1);
31setsp('VCOR', VCOR1);
32
33
34tango_write_attribute('LT1/AE/CV.2', 'current',  cv21 );
35tango_write_attribute('LT1/AE/CV.3', 'current',  cv31 );
36
37setsp('HCOR', HCOR);
38setsp('VCOR', VCOR);
39
40
41tango_write_attribute('LT1/AE/CV.2', 'current',  cv2 );
42tango_write_attribute('LT1/AE/CV.3', 'current',  cv3 );
Note: See TracBrowser for help on using the repository browser.