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 | |
---|
1 | function configcyclecurve(family, curve) |
---|
2 | |
---|
3 | %% |
---|
4 | % |
---|
5 | error('Expert: Do not use this function') |
---|
6 | |
---|
7 | AO = getao; |
---|
8 | |
---|
9 | fam = 'QP'; |
---|
10 | fam = 'CV'; |
---|
11 | |
---|
12 | k= 1; |
---|
13 | |
---|
14 | if strcmpi(fam, 'CV') || strcmpi(fam, 'CH') |
---|
15 | rtag = 'C[H,V]'; |
---|
16 | elseif strcmpi(fam, 'QP') |
---|
17 | rtag = 'Q'; |
---|
18 | elseif strcmpi(fam, 'BEND') |
---|
19 | rtag = 'D'; |
---|
20 | end |
---|
21 | |
---|
22 | for 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); |
---|
35 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.