Search found 1930 matches

by michael_borland
06 Aug 2008, 09:14
Forum: General
Topic: Generating SDDS files with PERL
Replies: 4
Views: 2560

Re: Generating SDDS files with PERL

Chris, The problem seems related to lack of new-line characters in the body of the file. For example, if I run "sdds2stream tmp.sdds -rows", it says "1 row". Also, "wc tmp.sdds" returns 22 as the number of lines---that's the header plus 1 line. When I examine the file with "od -ba tmp.sdds", it show...
by michael_borland
06 Aug 2008, 08:45
Forum: General
Topic: Generating SDDS files with PERL
Replies: 4
Views: 2560

Re: Generating SDDS files with PERL

Chris,

Can you post one of the files that gives the problem? I suspect a problem with end-of-line characters.

--Michael
by michael_borland
05 Aug 2008, 08:01
Forum: Ring Tracking
Topic: Matrix concatenation
Replies: 2
Views: 2862

Re: Matrix concatenation

Alexey, The concat_order parameter allows controlling the order of elements that will be concatenated. For example, if you set concat_order=2, then all successive elements that are represented by a matrix of order 2 or less will be concantenated into a single 2nd-order matrix. When elements are seen...
by michael_borland
04 Aug 2008, 12:46
Forum: General
Topic: Linking elements
Replies: 3
Views: 2746

Re: Linking elements

Michele,

I suspect you are using an old version. If so, try upgrading to the latest release.

--Michael
by michael_borland
01 Aug 2008, 16:36
Forum: General
Topic: Linking elements
Replies: 3
Views: 2746

Re: Linking elements

Michele, There are two issues here. One is an error in your input file, and another is the unclear nature of the link_elements command. First, in the input file you have &link_elements target = MBW1E01, item = ANGLE, source = MBX1E02, equation = ".5 *" &end This is not what you want. The equation sh...
by michael_borland
01 Aug 2008, 15:12
Forum: Linac Tracking
Topic: output more points
Replies: 3
Views: 2955

Re: output more points

Ding,

Sorry about that. It will be fixed in the next release (next week, I hope).

--Michael
by michael_borland
31 Jul 2008, 09:02
Forum: General
Topic: particle (longitudinal) coordinates
Replies: 3
Views: 3047

Re: particle (longitudinal) coordinates

Chris,

You're right about meanCenter. I edited the post.

--Michael
by michael_borland
31 Jul 2008, 08:01
Forum: General
Topic: particle (longitudinal) coordinates
Replies: 3
Views: 3047

Re: particle (longitudinal) coordinates

Chris, The quickest way to handle this is using the offset mode of sddsplot. sddsplot <listOfFilenames> -graph=dot -separate -mode=x=meanCenter -column=t,p This will compute the mean value of t for each page, then offset the coordinates by the negative of that value. Assuming all the rf systems are ...
by michael_borland
30 Jul 2008, 15:29
Forum: Linac Tracking
Topic: output more points
Replies: 3
Views: 2955

Re: output more points

Ding, You can use the divide_elements command to subdivide the drift spaces. For example ÷_elements name = *, type=DRIF, divisions = 10 &end This command needs to go before run_setup. The manual page is here: http://www.aps.anl.gov/Accelerator_Systems_Division/Operations_Analysis/manuals/elega...
by michael_borland
28 Jul 2008, 14:15
Forum: General
Topic: Element Naming Restrictions
Replies: 2
Views: 2388

Re: Element Naming Restrictions

I forgot to say, you can also have digits 0-9 in the name.

--Michael