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:
599 bytes
|
Line | |
---|
1 | function tango_group_enable_device2(group_id, dev_name, forward) |
---|
2 | %TANGO_GROUP_ID Disables a device in the group. |
---|
3 | % |
---|
4 | % INPUTS |
---|
5 | % 1. group_id - Tango group id |
---|
6 | % 2. dev_name - tango device list |
---|
7 | % 3. forward - for nested group (Default: 0) |
---|
8 | % |
---|
9 | % See also tango_group_disable_device2 |
---|
10 | |
---|
11 | % |
---|
12 | % Written by Laurent S. Nadolski |
---|
13 | |
---|
14 | if nargin < 3 |
---|
15 | forward = 0; |
---|
16 | end |
---|
17 | |
---|
18 | if ~iscell(dev_name) |
---|
19 | dev_name = {devname}; |
---|
20 | end |
---|
21 | |
---|
22 | for k= 1:size(dev_name,1), |
---|
23 | result = tango_group_enable_device(group_id, dev_name{k}, forward); |
---|
24 | if result == -1 |
---|
25 | fprintf('Error when enabling device %s \n',dev_name{k}); |
---|
26 | end |
---|
27 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.