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:
1.2 KB
|
Line | |
---|
1 | function set_booster_mode(mode) |
---|
2 | % mode = eco, on, off |
---|
3 | % set setpoint relative to mode to Dipole, Qpole and sextupole |
---|
4 | |
---|
5 | switch mode |
---|
6 | case 'eco' |
---|
7 | boo.DIPcurrent = 50 ; |
---|
8 | boo.QFcurrent = 50 ; |
---|
9 | boo.QDcurrent = 50 ; |
---|
10 | boo.SFcurrent = 0 ; |
---|
11 | boo.SDcurrent = 0 ; |
---|
12 | case 'on' |
---|
13 | boo.DIPcurrent = 545 ; |
---|
14 | boo.QFcurrent = 201.765 ; |
---|
15 | boo.QDcurrent = 162.611 ; |
---|
16 | boo.SFcurrent = 15. ; |
---|
17 | boo.SDcurrent = 10.42 ; |
---|
18 | otherwise |
---|
19 | return |
---|
20 | end |
---|
21 | |
---|
22 | tango_write_attribute('BOO/AE/dipole','current', boo.DIPcurrent); |
---|
23 | tango_write_attribute('BOO/AE/QF','current', boo.QFcurrent); |
---|
24 | tango_write_attribute('BOO/AE/QD','current', boo.QDcurrent); |
---|
25 | tango_write_attribute('BOO/AE/SF','current', boo.SFcurrent); |
---|
26 | tango_write_attribute('BOO/AE/SD','current', boo.SDcurrent); |
---|
27 | % writeattribute('BOO/AE/dipole','waveformOffset',boo.DIPoffset); |
---|
28 | % writeattribute('BOO/AE/QF','waveformOffset', boo.QFpoffset); |
---|
29 | % writeattribute('BOO/AE/QD','waveformOffset', boo.QDpoffset); |
---|
30 | % writeattribute('BOO/AE/SF','waveformOffset', boo.SFpoffset); |
---|
31 | % writeattribute('BOO/AE/SD','waveformOffset', boo.SDpoffset); |
---|
Note: See
TracBrowser
for help on using the repository browser.