1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Description of channel2family</title> |
---|
6 | <meta name="keywords" content="channel2family"> |
---|
7 | <meta name="description" content="CHANNEL2FAMILY - Convert a channel name to a Family, Field, DeviceList"> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
10 | <meta name="robots" content="index, follow"> |
---|
11 | <link type="text/css" rel="stylesheet" href="../m2html.css"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <a name="_top"></a> |
---|
15 | <div><a href="../index.html">Home</a> > <a href="index.html">mml</a> > channel2family.m</div> |
---|
16 | |
---|
17 | <!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png"> Master index</a></td> |
---|
18 | <td align="right"><a href="index.html">Index for mml <img alt=">" border="0" src="../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>channel2family |
---|
21 | </h1> |
---|
22 | |
---|
23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
24 | <div class="box"><strong>CHANNEL2FAMILY - Convert a channel name to a Family, Field, DeviceList</strong></div> |
---|
25 | |
---|
26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
27 | <div class="box"><strong>function [FamilyName, Field, DeviceList, ErrorFlag] = channel2family(varargin) </strong></div> |
---|
28 | |
---|
29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
30 | <div class="fragment"><pre class="comment">CHANNEL2FAMILY - Convert a channel name to a Family, Field, DeviceList |
---|
31 | [Family, Field, DeviceList, ErrorFlag] = channel2family(ChannelNames, Family) |
---|
32 | |
---|
33 | INPUTS |
---|
34 | 1. ChannelNames - List of channel names (string, matrix, or cell array) |
---|
35 | 2. Family - Family Names to to limit search (string or cell of strings) |
---|
36 | Accelerator Object |
---|
37 | '' search all families {Default} |
---|
38 | |
---|
39 | OUTPUTS |
---|
40 | 1. Family - Family name corresponding to the channel name |
---|
41 | If the channel name cannot be found an empty strings |
---|
42 | (or a blank string for matrix inputs) is returned |
---|
43 | 2. Field - Field Name |
---|
44 | 3. DeviceList - DeviceList corresponding to the common name |
---|
45 | If no common names are found, an empty matrix is returned |
---|
46 | If only some common names are not found, [NaN NaN] will be |
---|
47 | inserted into the device list where they are not found. |
---|
48 | 4. ErrorFlag - number of errors found |
---|
49 | |
---|
50 | Written by Greg Portmann</pre></div> |
---|
51 | |
---|
52 | <!-- crossreference --> |
---|
53 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
54 | This function calls: |
---|
55 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
56 | <li><a href="channel2dev.html" class="code" title="function [DeviceList, FamilyName, Field, ErrorFlag] = channel2dev(ChannelNames, FamilyList)">channel2dev</a> CHANNEL2DEV - Converts a channel name list to a device list</li></ul> |
---|
57 | This function is called by: |
---|
58 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
59 | </ul> |
---|
60 | <!-- crossreference --> |
---|
61 | |
---|
62 | |
---|
63 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
64 | <div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [FamilyName, Field, DeviceList, ErrorFlag] = channel2family(varargin)</a> |
---|
65 | 0002 <span class="comment">%CHANNEL2FAMILY - Convert a channel name to a Family, Field, DeviceList</span> |
---|
66 | 0003 <span class="comment">% [Family, Field, DeviceList, ErrorFlag] = channel2family(ChannelNames, Family)</span> |
---|
67 | 0004 <span class="comment">%</span> |
---|
68 | 0005 <span class="comment">% INPUTS</span> |
---|
69 | 0006 <span class="comment">% 1. ChannelNames - List of channel names (string, matrix, or cell array)</span> |
---|
70 | 0007 <span class="comment">% 2. Family - Family Names to to limit search (string or cell of strings)</span> |
---|
71 | 0008 <span class="comment">% Accelerator Object</span> |
---|
72 | 0009 <span class="comment">% '' search all families {Default}</span> |
---|
73 | 0010 <span class="comment">%</span> |
---|
74 | 0011 <span class="comment">% OUTPUTS</span> |
---|
75 | 0012 <span class="comment">% 1. Family - Family name corresponding to the channel name</span> |
---|
76 | 0013 <span class="comment">% If the channel name cannot be found an empty strings</span> |
---|
77 | 0014 <span class="comment">% (or a blank string for matrix inputs) is returned</span> |
---|
78 | 0015 <span class="comment">% 2. Field - Field Name</span> |
---|
79 | 0016 <span class="comment">% 3. DeviceList - DeviceList corresponding to the common name</span> |
---|
80 | 0017 <span class="comment">% If no common names are found, an empty matrix is returned</span> |
---|
81 | 0018 <span class="comment">% If only some common names are not found, [NaN NaN] will be</span> |
---|
82 | 0019 <span class="comment">% inserted into the device list where they are not found.</span> |
---|
83 | 0020 <span class="comment">% 4. ErrorFlag - number of errors found</span> |
---|
84 | 0021 <span class="comment">%</span> |
---|
85 | 0022 <span class="comment">% Written by Greg Portmann</span> |
---|
86 | 0023 |
---|
87 | 0024 |
---|
88 | 0025 [DeviceList, FamilyName, Field, ErrorFlag] = <a href="channel2dev.html" class="code" title="function [DeviceList, FamilyName, Field, ErrorFlag] = channel2dev(ChannelNames, FamilyList)">channel2dev</a>(varargin{:}); |
---|
89 | 0026</pre></div> |
---|
90 | <hr><address>Generated on Mon 21-May-2007 15:29:18 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
91 | </body> |
---|
92 | </html> |
---|