source: MML/trunk/machine/SOLEIL/common/synchro/set_septa_actif.m @ 4

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: 848 bytes
Line 
1% special tension septum actif boo et ans
2
3% valeur de tension a basse cadence (soft)
4boo=99.239224886870645;
5ans=93.536955102247219;
6r=(1+0.002); % ratio
7try
8    %temp=tango_read_attribute2('BOO-C12/EP/AL_SEP_A.Ext','voltage');boo=temp.value(2)*r
9    tango_write_attribute2('BOO-C12/EP/AL_SEP_A.Ext','voltage',boo*r);
10    %temp=tango_read_attribute2('ANS-C01/EP/AL_SEP_A','voltage');    ans=temp.value(2)*r
11    tango_write_attribute2('ANS-C01/EP/AL_SEP_A','voltage',ans*r);
12catch
13    display('Erreur ajustement tension septa passif')
14end
15temp=tango_read_attribute2('BOO-C12/EP/AL_SEP_A.Ext','voltage');temp.value(2)
16temp=tango_read_attribute2('ANS-C01/EP/AL_SEP_A','voltage');    temp.value(2)
17   
18
19return
20% start value
21
22tango_write_attribute2('BOO-C12/EP/AL_SEP_A.Ext','voltage',boo);
23tango_write_attribute2('ANS-C01/EP/AL_SEP_A','voltage',ans);
Note: See TracBrowser for help on using the repository browser.