source: MML/trunk/mml/links/tango/tango_group_command_inout2.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: 879 bytes
Line 
1function 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
7if nargin < 2
8   error('At least 2 arguments required');
9end
10
11% No answer
12if nargin < 3
13   forget = 1;
14end
15
16% No subgroup
17if nargin < 4
18   forward = 0;
19end
20
21argout = tango_group_command_inout(grp_id, cmd_name, forget, forward, varargin);
22% Error parsing for group command
23if ~isstruct(argout) && argout == -1% QUICK FIX 29 August 2011
24    tango_print_error_stack
25end
26if (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
34end
35
Note: See TracBrowser for help on using the repository browser.