How to use elegant on Windows

Moderators: cyao, soliday

Post Reply
CCH
Posts: 16
Joined: 16 Apr 2010, 02:04

How to use elegant on Windows

Post by CCH » 19 Apr 2010, 01:26

Hello,
I'm trying to use elegant on my pc(windows).But I don't know where should I start.I have followed the Guide to Installing SDDS and OAG Simulation Software on Windows and I have elegant,SDDS toolkit,and Cygwin on my computer.But I don't
know what should I do to do a accelerator simulation.I have read the manuals of elegant and SDDS,but all they tell me is how to use certain commands.But my problem is I don't know where to type these commands.Can you give me some advice or tell me where to start.

CCH
Posts: 16
Joined: 16 Apr 2010, 02:04

Re: How to use elegant on Windows

Post by CCH » 19 Apr 2010, 20:58

Can anyone give me some advise on how to produce the script and how to made elegant work with it? I'm confused by the hundreds pages of manuals.

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: How to use elegant on Windows

Post by michael_borland » 19 Apr 2010, 21:43

A good first step is to download the example files and scripts, which you'll find at http://www.aps.anl.gov/Accelerator_Syst ... ml#elegant
then follow steps 3 and 4 of the windows guide.

I'm not a Windows user. Perhaps some of the windows users out there can help.

--Michael

CCH
Posts: 16
Joined: 16 Apr 2010, 02:04

Re: How to use elegant on Windows

Post by CCH » 19 Apr 2010, 22:01

Thank you for your help ! I've had the example files ,but I don't know how to run them.
For example,the notebook read:
To run and plot results
% runSim
The run time is considerable so be patient.

But how to run the script runSim.type the name in the UNIX shell? or do something else?

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: How to use elegant on Windows

Post by michael_borland » 20 Apr 2010, 08:34

Yes, just type the name in the Unix shell. First, you need to navigate to the proper directory using the "cd" command. There are various unix tutorials on the web that you may want to look at. For example: http://www.ee.surrey.ac.uk/Teaching/Unix/unix1.html

One thing I noticed is that cygwin no longer includes the Tcl shell (tclsh), so that will cause some problems with the examples. We are looking into what we can do about this.

--Michael

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: How to use elegant on Windows

Post by michael_borland » 20 Apr 2010, 09:54

Actually, I'm wrong about cygwin not include tclsh. It can be selected as part of the installation process for cygwin.

--Michael

CCH
Posts: 16
Joined: 16 Apr 2010, 02:04

Re: How to use elegant on Windows

Post by CCH » 22 Apr 2010, 04:10

Thank you ! Now I can run these examples.But when I used the sddsplot,I got an error message.It read:Before you can print ,you must install a printer. The screen shots are shown in the following.
Attachments
b.JPG
a.JPG

soliday
Posts: 392
Joined: 28 May 2008, 09:15

Re: How to use elegant on Windows

Post by soliday » 22 Apr 2010, 09:22

Try changing the default printer. sddsplot has to load the printer drivers and it has trouble with some printers.

CCH
Posts: 16
Joined: 16 Apr 2010, 02:04

Re: How to use elegant on Windows

Post by CCH » 22 Apr 2010, 21:27

Thank you! It works

Post Reply