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.0 KB
|
Line | |
---|
1 | function replies = tango_group_read_attributes2(group_id, attr_name, forward) |
---|
2 | %TANGO_GROUP_WRITE_ATTRIBUTES - enhance function with error handling |
---|
3 | % |
---|
4 | % INPUTS |
---|
5 | % 1. Group identification number |
---|
6 | % 2. Attr_name Attribute name |
---|
7 | % 3. forward |
---|
8 | % |
---|
9 | % See Also tango_group_read_attribute |
---|
10 | |
---|
11 | % |
---|
12 | %% Written by Laurent S. Nadolski |
---|
13 | |
---|
14 | if nargin < 2 |
---|
15 | error('At least 3 arguments required'); |
---|
16 | end |
---|
17 | if nargin < 3 |
---|
18 | forward = 0; |
---|
19 | end |
---|
20 | |
---|
21 | replies = tango_group_read_attributes(group_id, attr_name, forward); |
---|
22 | |
---|
23 | if tango_error == -1 |
---|
24 | tango_print_error_stack; |
---|
25 | ErrorFlag = 1; |
---|
26 | return; |
---|
27 | else |
---|
28 | if replies.has_failed > 0 |
---|
29 | ErrorFlag = 1; |
---|
30 | for k=1:length(replies.dev_replies), |
---|
31 | if replies.dev_replies(k).has_failed |
---|
32 | for ik=1:size(replies.dev_replies(k).attr_values,2) |
---|
33 | tango_print_error_stack_as_it_is(replies.dev_replies(k).attr_values(ik).error); |
---|
34 | replies.dev_replies(k).attr_values(ik).value = NaN; |
---|
35 | end |
---|
36 | end |
---|
37 | end |
---|
38 | ErrorFlag = 1; |
---|
39 | %return; |
---|
40 | end |
---|
41 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.