source: MML/trunk/mml/doc_html/mml/hcm2golden.html @ 4

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: 4.7 KB
Line 
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 &copy; 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> &gt;  <a href="index.html">mml</a> &gt; hcm2golden.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for mml&nbsp;<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>
41This 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>
44This 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>
520002 <span class="comment">%HCM2GOLDEN - Set horizontal corrector strengths to golden values</span>
530003 <span class="comment">%</span>
540004 <span class="comment">% hcm2golden(nstep)</span>
550005 <span class="comment">%</span>
560006 <span class="comment">% INPUTS</span>
570007 <span class="comment">% 1. nstep - number of step for setting correctors {Default: 5}</span>
580008 <span class="comment">%</span>
590009 <span class="comment">% See also vcm2zero, vcm2golden, hcm2zero</span>
600010
610011 <span class="comment">%</span>
620012 <span class="comment">%  Written by Gregory J. Portmann</span>
630013 <span class="comment">%  Adapted by Laurent S. Nadolski</span>
640014
650015
660016 <span class="keyword">if</span> nargin &lt; 1
670017     nstep = 5;
680018 <span class="keyword">end</span>
690019
700020
710021 CMFamily = <a href="gethcmfamily.html" class="code" title="function Family = gethcmfamily">gethcmfamily</a>;
720022 CMGolden = <a href="getgolden.html" class="code" title="function Data = getgolden(varargin)">getgolden</a>(CMFamily);
730023 CM0 = <a href="getsp.html" class="code" title="function [SP, tout, DataTime, ErrorFlag] = getsp(Family, varargin)">getsp</a>(CMFamily);
740024
750025 <span class="keyword">for</span> k = 1:nstep
760026     <a href="setsp.html" class="code" title="function ErrorFlag = setsp(Family, varargin)">setsp</a>(CMFamily, CM0 + k/nstep * (CMGolden-CM0), [], -1);
770027     pause(0.1);
780028 <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> &copy; 2003</address>
80</body>
81</html>
Note: See TracBrowser for help on using the repository browser.