Page 1 of 1

How to use elegant on Windows

Posted: 19 Apr 2010, 01:26
by CCH
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.

Re: How to use elegant on Windows

Posted: 19 Apr 2010, 20:58
by CCH
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.

Re: How to use elegant on Windows

Posted: 19 Apr 2010, 21:43
by michael_borland
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

Re: How to use elegant on Windows

Posted: 19 Apr 2010, 22:01
by CCH
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?

Re: How to use elegant on Windows

Posted: 20 Apr 2010, 08:34
by michael_borland
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

Re: How to use elegant on Windows

Posted: 20 Apr 2010, 09:54
by michael_borland
Actually, I'm wrong about cygwin not include tclsh. It can be selected as part of the installation process for cygwin.

--Michael

Re: How to use elegant on Windows

Posted: 22 Apr 2010, 04:10
by CCH
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.

Re: How to use elegant on Windows

Posted: 22 Apr 2010, 09:22
by soliday
Try changing the default printer. sddsplot has to load the printer drivers and it has trouble with some printers.

Re: How to use elegant on Windows

Posted: 22 Apr 2010, 21:27
by CCH
Thank you! It works