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:
879 bytes
|
Line | |
---|
1 | function argout = tango_group_command_inout2 (grp_id, cmd_name, forget, forward, varargin) |
---|
2 | %tango_group_command_inout Executes asynchronously the TANGO command <cmd_name> on the specified group. |
---|
3 | % |
---|
4 | % See also TANGO_GROUP_COMMAND_INOUT_ASYNCH, TANGO_GROUP_COMMAND_argout. |
---|
5 | % |
---|
6 | |
---|
7 | if nargin < 2 |
---|
8 | error('At least 2 arguments required'); |
---|
9 | end |
---|
10 | |
---|
11 | % No answer |
---|
12 | if nargin < 3 |
---|
13 | forget = 1; |
---|
14 | end |
---|
15 | |
---|
16 | % No subgroup |
---|
17 | if nargin < 4 |
---|
18 | forward = 0; |
---|
19 | end |
---|
20 | |
---|
21 | argout = tango_group_command_inout(grp_id, cmd_name, forget, forward, varargin); |
---|
22 | % Error parsing for group command |
---|
23 | if ~isstruct(argout) && argout == -1% QUICK FIX 29 August 2011 |
---|
24 | tango_print_error_stack |
---|
25 | end |
---|
26 | if (argout.has_failed) |
---|
27 | for k=1:length(argout.replies) |
---|
28 | if argout.replies(k).has_failed |
---|
29 | for k1 = 1:length(argout.replies(k).error) |
---|
30 | argout.replies(k).error(k1) |
---|
31 | end |
---|
32 | end |
---|
33 | end |
---|
34 | end |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.