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 hcm2golden</title> |
---|
6 | <meta name="keywords" content="hcm2golden"> |
---|
7 | <meta name="description" content="HCM2GOLDEN - Set horizontal corrector strengths to golden values"> |
---|
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> > hcm2golden.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>hcm2golden |
---|
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>HCM2GOLDEN - Set horizontal corrector strengths to golden values</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 hcm2golden(nstep) </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">HCM2GOLDEN - Set horizontal corrector strengths to golden values |
---|
31 | |
---|
32 | hcm2golden(nstep) |
---|
33 | |
---|
34 | INPUTS |
---|
35 | 1. nstep - number of step for setting correctors {Default: 5} |
---|
36 | |
---|
37 | See also <a href="vcm2zero.html" class="code" title="function vcm2zero(varargin)">vcm2zero</a>, <a href="vcm2golden.html" class="code" title="function vcm2golden(nstep)">vcm2golden</a>, <a href="hcm2zero.html" class="code" title="function hcm2zero(varargin)">hcm2zero</a></pre></div> |
---|
38 | |
---|
39 | <!-- crossreference --> |
---|
40 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
41 | This function calls: |
---|
42 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
43 | <li><a href="getgolden.html" class="code" title="function Data = getgolden(varargin)">getgolden</a> GETGOLDEN - Returns the golden values for a family</li><li><a href="gethcmfamily.html" class="code" title="function Family = gethcmfamily">gethcmfamily</a> GETHCMFAMILY - Returns the default horizontal corrector family</li><li><a href="getsp.html" class="code" title="function [SP, tout, DataTime, ErrorFlag] = getsp(Family, varargin)">getsp</a> GETSP - Gets setpoint channels</li><li><a href="setsp.html" class="code" title="function ErrorFlag = setsp(Family, varargin)">setsp</a> SETSP - Makes an absolute setpoint change to the 'Setpoint' field</li></ul> |
---|
44 | This function is called by: |
---|
45 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
46 | </ul> |
---|
47 | <!-- crossreference --> |
---|
48 | |
---|
49 | |
---|
50 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
51 | <div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function hcm2golden(nstep)</a> |
---|
52 | 0002 <span class="comment">%HCM2GOLDEN - Set horizontal corrector strengths to golden values</span> |
---|
53 | 0003 <span class="comment">%</span> |
---|
54 | 0004 <span class="comment">% hcm2golden(nstep)</span> |
---|
55 | 0005 <span class="comment">%</span> |
---|
56 | 0006 <span class="comment">% INPUTS</span> |
---|
57 | 0007 <span class="comment">% 1. nstep - number of step for setting correctors {Default: 5}</span> |
---|
58 | 0008 <span class="comment">%</span> |
---|
59 | 0009 <span class="comment">% See also vcm2zero, vcm2golden, hcm2zero</span> |
---|
60 | 0010 |
---|
61 | 0011 <span class="comment">%</span> |
---|
62 | 0012 <span class="comment">% Written by Gregory J. Portmann</span> |
---|
63 | 0013 <span class="comment">% Adapted by Laurent S. Nadolski</span> |
---|
64 | 0014 |
---|
65 | 0015 |
---|
66 | 0016 <span class="keyword">if</span> nargin < 1 |
---|
67 | 0017 nstep = 5; |
---|
68 | 0018 <span class="keyword">end</span> |
---|
69 | 0019 |
---|
70 | 0020 |
---|
71 | 0021 CMFamily = <a href="gethcmfamily.html" class="code" title="function Family = gethcmfamily">gethcmfamily</a>; |
---|
72 | 0022 CMGolden = <a href="getgolden.html" class="code" title="function Data = getgolden(varargin)">getgolden</a>(CMFamily); |
---|
73 | 0023 CM0 = <a href="getsp.html" class="code" title="function [SP, tout, DataTime, ErrorFlag] = getsp(Family, varargin)">getsp</a>(CMFamily); |
---|
74 | 0024 |
---|
75 | 0025 <span class="keyword">for</span> k = 1:nstep |
---|
76 | 0026 <a href="setsp.html" class="code" title="function ErrorFlag = setsp(Family, varargin)">setsp</a>(CMFamily, CM0 + k/nstep * (CMGolden-CM0), [], -1); |
---|
77 | 0027 pause(0.1); |
---|
78 | 0028 <span class="keyword">end</span></pre></div> |
---|
79 | <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> |
---|
80 | </body> |
---|
81 | </html> |
---|