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:
984 bytes
|
Line | |
---|
1 | function [TangoNames, ErrorFlag] = dev2tangodev(Family, DeviceList) |
---|
2 | %DEV2TANGODEV - Converts a device list to TANGO device names |
---|
3 | % [TangoNames, ErrorFlag] = dev2tangodev(Family, DeviceList) |
---|
4 | % |
---|
5 | % INPUTS |
---|
6 | % 1. Family = Family Name |
---|
7 | % Data Structure |
---|
8 | % Accelerator Object |
---|
9 | % Cell Array |
---|
10 | % 2. DeviceList ([Sector Device #] or [element #]) |
---|
11 | % |
---|
12 | % OUTPUTS |
---|
13 | % 1. TangoNames = Device name corresponding to the Family, and DeviceList |
---|
14 | % |
---|
15 | % NOTES |
---|
16 | % 1. If Family is a cell array, then DeviceList and Field must also be a cell arrays |
---|
17 | % 2. Returns only status 1 devices -- See StatusFlag |
---|
18 | % |
---|
19 | % EXAMPLES |
---|
20 | % 1. dev2tangodev('BPMx','Monitor',[1 1]) |
---|
21 | % 2. dev2tangodev({'HCOR','VCOR'},{'Monitor','Monitor'},{[1 1],[1 2]}) |
---|
22 | % |
---|
23 | % See Also family2tangodev, tango2family |
---|
24 | |
---|
25 | % |
---|
26 | % Written by Laurent S. Nadolski |
---|
27 | |
---|
28 | if nargin <= 1 |
---|
29 | error('Must have at least two inputs (''Family'', (''devicelist'')!'); |
---|
30 | end |
---|
31 | |
---|
32 | [TangoNames, ErrorFlag] = family2tangodev(Family, DeviceList); |
---|
Note: See
TracBrowser
for help on using the repository browser.