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