source: MML/trunk/machine/SOLEIL/common/cycling/configcyclecurve.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 804 bytes
Line 
1function configcyclecurve(family, curve)
2
3%%
4%
5error('Expert: Do not use this function')
6
7AO = getao;
8
9fam = 'QP';
10fam = 'CV';
11
12k= 1;
13
14if strcmpi(fam, 'CV') || strcmpi(fam, 'CH')
15    rtag = 'C[H,V]';
16elseif strcmpi(fam, 'QP')
17    rtag = 'Q';
18elseif strcmpi(fam, 'BEND')
19    rtag = 'D';   
20end
21
22for k = 1:length(AO.(fam).DeviceName)
23    dev_name = AO.(fam).DeviceName{k};
24    idx = regexpi(dev_name,rtag);
25%     idx = regexpi(dev_name,'Q');
26
27    dev_cycle = [dev_name(1:idx-1) 'cycle' dev_name(idx:end)];
28
29    prop_name = {'AttributeProxyRead','AttributeProxyWrite', 'Iterations'};
30    prop = tango_get_properties2(dev_cycle,prop_name);
31    prop(1).value = {AO.(fam).Monitor.TangoNames{k}};
32    prop(2).value = prop(1).value;
33    prop(3).value = {'1'};
34    tango_put_properties2(dev_cycle,prop);
35end
Note: See TracBrowser for help on using the repository browser.