source: MML/trunk/machine/SOLEIL/StorageRing/insertions/IDStarter/idTestWriteCorrectionTable.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: 1.7 KB
Line 
1dev = 'ANS-C08/EI/M-HU80.2';
2
3rep = tango_read_attribute2(dev,'parallelModeCHE')
4matCHE0 = rep.value;
5rep = tango_read_attribute2(dev,'parallelModeCVE')
6matCVE0 = rep.value;
7rep = tango_read_attribute2(dev,'parallelModeCHS')
8matCHS0 = rep.value;
9rep = tango_read_attribute2(dev,'parallelModeCVS')
10matCVS0 = rep.value;
11%%
12
13vPhase = [-40, -35, -30, -25, -20, -15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40];
14vGap = [15.5, 16, 18, 20, 22.5, 25, 27.5, 30, 35, 40, 50, 60, 70, 80, 90, 100, 110, 130, 150, 250];
15
16mCHE_with_arg = idAuxMergeCorTableWithArg2D(vGap, vPhase, mCHE_HU80_TEMPO_upd_p0);
17mCVE_with_arg = idAuxMergeCorTableWithArg2D(vGap, vPhase, mCVE_HU80_TEMPO_upd_p0);
18mCHS_with_arg = idAuxMergeCorTableWithArg2D(vGap, vPhase, mCHS_HU80_TEMPO_upd_p0);
19mCVS_with_arg = idAuxMergeCorTableWithArg2D(vGap, vPhase, mCVS_HU80_TEMPO_upd_p0);
20
21tango_write_attribute2(dev,'parallelModeCHE', mCHE_with_arg);
22tango_write_attribute2(dev,'parallelModeCVE', mCVE_with_arg);
23tango_write_attribute2(dev,'parallelModeCHS', mCHS_with_arg);
24tango_write_attribute2(dev,'parallelModeCVS', mCVS_with_arg);
25
26
27%matCHE = matCHE0;
28%matCHE(2:end,2:end) = 0;
29%matCHE(2:end,1) = [15.5 20 25 30 40 50 80 110];
30%matCVE = matCHE;
31%matCHS = matCHE;
32%matCVS = matCHE;
33
34%id = 1;
35%matCHE(2:end,6) = [CX_G15_5(id); CX_G20(id); CX_G25(id); CX_G30(id); CX_G40(id); CX_G50(id); CX_G80(id); CX_G110(id)]
36%matCVE(2:end,6) = [CZ_G15_5(id); CZ_G20(id); CZ_G25(id); CZ_G30(id); CZ_G40(id); CZ_G50(id); CZ_G80(id); CZ_G110(id)]
37
38%id = 2;
39%matCHS(2:end,6) = [CX_G15_5(id); CX_G20(id); CX_G25(id); CX_G30(id); CX_G40(id); CX_G50(id); CX_G80(id); CX_G110(id)]
40%matCVS(2:end,6) = [CZ_G15_5(id); CZ_G20(id); CZ_G25(id); CZ_G30(id); CZ_G40(id); CZ_G50(id); CZ_G80(id); CZ_G110(id)]
Note: See TracBrowser for help on using the repository browser.