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:
1013 bytes
|
Line | |
---|
1 | function showao(Family) |
---|
2 | %SHOWAO - Display the AcceleratorObjects fields containing Tango part |
---|
3 | % |
---|
4 | % INPUTS |
---|
5 | % 1. Family - Family Name |
---|
6 | % |
---|
7 | % See Also getfamilylist, showfamily, isfamily, getfamilytype |
---|
8 | |
---|
9 | % |
---|
10 | % Written by Greogory J. Portmann |
---|
11 | % Modified by Laurent S. Nadolski |
---|
12 | % ChannelNames --> TangoNames |
---|
13 | |
---|
14 | ao = getao; |
---|
15 | if nargin < 1 |
---|
16 | FieldNameCell = fieldnames(ao); |
---|
17 | else |
---|
18 | FieldNameCell = {Family}; |
---|
19 | end |
---|
20 | |
---|
21 | for i = 1:length(FieldNameCell) |
---|
22 | if isfield(ao, FieldNameCell{i}) |
---|
23 | if isfield(ao.(FieldNameCell{i}),'FamilyName') |
---|
24 | fprintf('Family = %s\n', ao.(FieldNameCell{i}).FamilyName); |
---|
25 | end |
---|
26 | % Find all the subfields that are data structures |
---|
27 | SubFieldNameCell = fieldnames(ao.(FieldNameCell{i})); |
---|
28 | for ii = 1:length(SubFieldNameCell) |
---|
29 | if isfield(ao.(FieldNameCell{i}).(SubFieldNameCell{ii}),'TangoNames') |
---|
30 | fprintf('%s.%s\n', ao.(FieldNameCell{i}).FamilyName, SubFieldNameCell{ii}); |
---|
31 | end |
---|
32 | end |
---|
33 | fprintf('\n'); |
---|
34 | end |
---|
35 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.