source: PSPA/madxPSPA/doc/usrguide/sxf/sxf.html @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 1.1 KB
Line 
1<head>
2<title>SXF</title>
3<!-- Changed by: Chris ISELIN, 27-Jan-1997 -->
4<!-- Changed by: Hans Grote,  4-Dec-2002 -->
5</head>
6
7<body bgcolor="#ffffff">
8
9<h2><a name=sxf>SXF file input and output</a></h2>
10The command
11<pre>
12SXFWRITE,FILE=filename;
13</pre>
14writes the currently (i.e. last) USEd sequence with all alignment
15and field errors in <a
16href="../Introduction/bibliography.html#SXF">[SXF]</a> format onto the
17file specified. This then represents one "instance" of the sequence,
18where all parameters are given by numbers rather than expressions; the
19file can be read by other programs to get a complete picture of the
20sequence.
21<p>
22The command
23<pre>
24SXFREAD,FILE=filename;
25</pre>
26reads a file in SXF format, stores the sequence away and USEs it(!) in order
27to keep the existing errors. The following does therefore work:
28<p>
29Example:
30<pre>
31job 1:
32
33! define sequence MYSEQU
34
35use,mysequ;
36
37! add alignment errors and field errors
38
39sxfwrite,file=file;
40stop;
41
42job 2:
43
44sxfread,file=file;
45twiss;
46stop;
47
48</pre>
49
50<address>
51<a href="http://www.cern.ch/Hans.Grote/hansg_sign.html">hansg</a>,
52January 24, 1997
53</address>
54
55</body>
Note: See TracBrowser for help on using the repository browser.