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:
1.1 KB
|
Rev | Line | |
---|
[4] | 1 | function [FamilyName, Field, DeviceList, ErrorFlag] = channel2family(varargin) |
---|
| 2 | %CHANNEL2FAMILY - Convert a channel name to a Family, Field, DeviceList |
---|
| 3 | % [Family, Field, DeviceList, ErrorFlag] = channel2family(ChannelNames, Family) |
---|
| 4 | % |
---|
| 5 | % INPUTS |
---|
| 6 | % 1. ChannelNames - List of channel names (string, matrix, or cell array) |
---|
| 7 | % 2. Family - Family Names to to limit search (string or cell of strings) |
---|
| 8 | % Accelerator Object |
---|
| 9 | % '' search all families {Default} |
---|
| 10 | % |
---|
| 11 | % OUTPUTS |
---|
| 12 | % 1. Family - Family name corresponding to the channel name |
---|
| 13 | % If the channel name cannot be found an empty strings |
---|
| 14 | % (or a blank string for matrix inputs) is returned |
---|
| 15 | % 2. Field - Field Name |
---|
| 16 | % 3. DeviceList - DeviceList corresponding to the common name |
---|
| 17 | % If no common names are found, an empty matrix is returned |
---|
| 18 | % If only some common names are not found, [NaN NaN] will be |
---|
| 19 | % inserted into the device list where they are not found. |
---|
| 20 | % 4. ErrorFlag - number of errors found |
---|
| 21 | % |
---|
| 22 | % Written by Greg Portmann |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | [DeviceList, FamilyName, Field, ErrorFlag] = channel2dev(varargin{:}); |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.