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 aoinit</title> |
---|
6 | <meta name="keywords" content="aoinit"> |
---|
7 | <meta name="description" content="AOINIT - Initialization function for the Matlab Middle Layer (MML)"> |
---|
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="#">machine</a> > <a href="#">Soleil</a> > <a href="index.html">LT2</a> > aoinit.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 machine/Soleil/LT2 <img alt=">" border="0" src="../../../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>aoinit |
---|
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>AOINIT - Initialization function for the Matlab Middle Layer (MML)</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 aoinit(SubMachineName) </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">AOINIT - Initialization function for the Matlab Middle Layer (MML) |
---|
31 | |
---|
32 | |
---|
33 | See Also soleilinit, setpathsoleil</pre></div> |
---|
34 | |
---|
35 | <!-- crossreference --> |
---|
36 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2> |
---|
37 | This function calls: |
---|
38 | <ul style="list-style-image:url(../../../matlabicon.gif)"> |
---|
39 | <li><a href="LT2init.html" class="code" title="function LT2init(OperationalMode)">LT2init</a> LT2INIT - Contructs an accelerator Object describing LT2</li></ul> |
---|
40 | This function is called by: |
---|
41 | <ul style="list-style-image:url(../../../matlabicon.gif)"> |
---|
42 | </ul> |
---|
43 | <!-- crossreference --> |
---|
44 | |
---|
45 | <h2><a name="_subfunctions"></a>SUBFUNCTIONS <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2> |
---|
46 | <ul style="list-style-image:url(../../../matlabicon.gif)"> |
---|
47 | <li><a href="#_sub1" class="code">function RunTimeFlag = isdeployed_local</a></li></ul> |
---|
48 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2> |
---|
49 | <div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function aoinit(SubMachineName)</a> |
---|
50 | 0002 <span class="comment">%AOINIT - Initialization function for the Matlab Middle Layer (MML)</span> |
---|
51 | 0003 <span class="comment">%</span> |
---|
52 | 0004 <span class="comment">%</span> |
---|
53 | 0005 <span class="comment">% See Also soleilinit, setpathsoleil</span> |
---|
54 | 0006 |
---|
55 | 0007 <span class="comment">% Written by Laurent S. Nadolski</span> |
---|
56 | 0008 |
---|
57 | 0009 |
---|
58 | 0010 <span class="keyword">if</span> exist(<span class="string">'SubMachineName'</span>, <span class="string">'var'</span>) && ~strcmpi(SubMachineName, <span class="string">'LT2'</span>) |
---|
59 | 0011 error(<span class="string">'Wrong SubMachine %s'</span>, SubMachineName) |
---|
60 | 0012 <span class="keyword">end</span> |
---|
61 | 0013 |
---|
62 | 0014 <span class="comment">% The path should not be modified in standalone mode</span> |
---|
63 | 0015 <span class="keyword">if</span> ~<a href="#_sub1" class="code" title="subfunction RunTimeFlag = isdeployed_local">isdeployed_local</a> |
---|
64 | 0016 |
---|
65 | 0017 MMLROOT = getmmlroot; |
---|
66 | 0018 |
---|
67 | 0019 addpath(fullfile(MMLROOT, <span class="string">'machine'</span>, <span class="string">'Soleil'</span>, <span class="string">'LT2OpsData'</span>)); |
---|
68 | 0020 addpath(fullfile(MMLROOT, <span class="string">'machine'</span>, <span class="string">'Soleil'</span>, <span class="string">'LT2'</span>)); |
---|
69 | 0021 addpath(fullfile(MMLROOT, <span class="string">'machine'</span>, <span class="string">'Soleil'</span>, <span class="string">'LT2'</span>, <span class="string">'Lattices'</span>)); |
---|
70 | 0022 <span class="comment">%addpath(fullfile(cdappli, 'LT1'));</span> |
---|
71 | 0023 addpath(fullfile(MMLROOT, <span class="string">'machine'</span>, <span class="string">'Soleil'</span>, <span class="string">'LT2'</span>, <span class="string">'emittance'</span>)); |
---|
72 | 0024 |
---|
73 | 0025 <span class="comment">% Make sure mml is high on the path</span> |
---|
74 | 0026 addpath(fullfile(MMLROOT, <span class="string">'mml'</span>),<span class="string">'-begin'</span>); |
---|
75 | 0027 |
---|
76 | 0028 disp([<span class="string">'TANGO/MATLAB binding version: '</span> tango_version]) |
---|
77 | 0029 disp(<span class="string">'Startup file for Matlab Middle Layer read with success'</span>); |
---|
78 | 0030 |
---|
79 | 0031 <span class="keyword">end</span> |
---|
80 | 0032 |
---|
81 | 0033 <span class="comment">% Initialize the MML for machine</span> |
---|
82 | 0034 |
---|
83 | 0035 <a href="LT2init.html" class="code" title="function LT2init(OperationalMode)">LT2init</a>; |
---|
84 | 0036 |
---|
85 | 0037 <a name="_sub1" href="#_subfunctions" class="code">function RunTimeFlag = isdeployed_local</a> |
---|
86 | 0038 <span class="comment">% isdeployed is not in matlab 6.5</span> |
---|
87 | 0039 V = version; |
---|
88 | 0040 <span class="keyword">if</span> str2double(V(1,1)) < 7 |
---|
89 | 0041 RunTimeFlag = 0; |
---|
90 | 0042 <span class="keyword">else</span> |
---|
91 | 0043 RunTimeFlag = isdeployed; |
---|
92 | 0044 <span class="keyword">end</span></pre></div> |
---|
93 | <hr><address>Generated on Mon 21-May-2007 15:35:27 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
94 | </body> |
---|
95 | </html> |
---|