1 | function [boo]=load_param |
---|
2 | |
---|
3 | % save parameter |
---|
4 | % alim |
---|
5 | boo.corrz = getam('VCOR'); |
---|
6 | boo.corrx = getam('HCOR'); |
---|
7 | boo.cv2=readattribute('LT1/AE/CV.2/current'); |
---|
8 | boo.cv3=readattribute('LT1/AE/CV.3/current'); |
---|
9 | boo.DIPcurrent=readattribute('BOO/AE/D.1/current' ,'Setpoint'); |
---|
10 | boo.DIPoffset =readattribute('BOO/AE/D.1/waveformOffset' ,'Setpoint'); |
---|
11 | boo.QFcurrent=readattribute('BOO/AE/QF/current' ,'Setpoint'); |
---|
12 | boo.QFpoffset =readattribute('BOO/AE/QF/waveformOffset' ,'Setpoint'); |
---|
13 | boo.QDcurrent=readattribute('BOO/AE/QD/current' ,'Setpoint'); |
---|
14 | boo.QDpoffset =readattribute('BOO/AE/QD/waveformOffset' ,'Setpoint'); |
---|
15 | boo.SFcurrent=readattribute('BOO/AE/SF/current' ,'Setpoint'); |
---|
16 | boo.SFpoffset =readattribute('BOO/AE/SF/waveformOffset' ,'Setpoint'); |
---|
17 | boo.SDcurrent=readattribute('BOO/AE/SD/current' ,'Setpoint'); |
---|
18 | boo.SDpoffset =readattribute('BOO/AE/SD/waveformOffset' ,'Setpoint'); |
---|
19 | % ep |
---|
20 | temp=tango_read_attribute2('BOO-C01/EP/AL_K.Inj','voltage'); boo.KINJvoltage=temp.value(2); |
---|
21 | temp=tango_read_attribute2('BOO-C22/EP/AL_SEP_P.Inj','voltage'); boo.SPINJvoltage=temp.value(2); |
---|
22 | temp=tango_read_attribute2('BOO-C10/EP/AL_DOF.1','voltagePeakValue'); boo.DOF1EXTvoltage=temp.value(2); |
---|
23 | temp=tango_read_attribute2('BOO-C11/EP/AL_DOF.2','voltagePeakValue'); boo.DOF2EXTvoltage=temp.value(2); |
---|
24 | temp=tango_read_attribute2('BOO-C12/EP/AL_DOF.3','voltagePeakValue'); boo.DOF3EXTvoltage=temp.value(2); |
---|
25 | temp=tango_read_attribute2('BOO-C10/EP/AL_K.Ext','voltage'); boo.KEXTvoltage=temp.value(2); |
---|
26 | temp=tango_read_attribute2('BOO-C11/EP/AL_SEP_P.Ext.1','serialVoltage');boo.SPEXTvoltage=temp.value(2); |
---|
27 | temp=tango_read_attribute2('BOO-C12/EP/AL_SEP_A.Ext','voltage'); boo.SAEXTvoltage=temp.value(2); |
---|
28 | |
---|
29 | temp=tango_read_attribute2('ANS-C01/EP/AL_SEP_P.1','serialVoltage'); boo.ANS_SPvoltage=temp.value(2); |
---|
30 | temp=tango_read_attribute2('ANS-C01/EP/AL_SEP_A','voltage'); boo.ANS_SAvoltage=temp.value(2); |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | % synchro |
---|
35 | temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'dpTimeDelay'); |
---|
36 | boo.DIPdelay=temp.value(1); |
---|
37 | temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qfTimeDelay'); |
---|
38 | boo.QFdelay=temp.value(1); |
---|
39 | temp=tango_read_attribute2('BOO/SY/LOCAL.ALIM.1', 'qdTimeDelay'); |
---|
40 | boo.QDdelay=temp.value(1); |
---|
41 | % diag |
---|
42 | current=tango_read_attribute2('BOO-C01/DG/DCCT','iV'); |
---|
43 | boo.current=current.value; |
---|
44 | xpos=tango_read_attribute2('BOO-C01/DG/BPM.01','XPosDD'); |
---|
45 | boo.bpmx=xpos.value; |
---|
46 | zpos=tango_read_attribute2('BOO-C03/DG/BPM.02','ZPosDD'); |
---|
47 | boo.bpmz=zpos.value; |
---|