about sddsplot.exe error on Windows XP
Posted: 24 Jul 2008, 22:06
Dear Michael,
I installed the latest version of elegant and SDDS ToolKit to a WinXP computer which I took over from other colleague. After the installation was complete, I copied all old data files to the new PC and did a test run. I just did a simple run to get the Twiss functions of a storage ring. The elegant command worked as it used to be on my old PC. But I got an error message when I ran the script to generate plots of Twiss function. The screenshots of error message are shown in the following pictures. I can execute the sddsplot command in the terminal mode but not with the sample script I obtained from elegant example files. If I modified the script file as following, then I got the plot of Twiss function as I used to on my old PC. The 'tcl-brlapi: tcl bindings' package was installed in CYGWIN. The tclsh.exe is in c:\cygwin\bin.
Is it critical to include those lines and keywords which I commented out in the script?
Ping
-----------[script file to generate plots of Twiss function]----------------------------
#!/bin/sh
# \
#exec tclsh "$0" "$@"
#if ![file exists 79h2Twiss.log] {
# catch {exec elegant 79h2Twiss.ele > 79h2Twiss.log}
#}
#exec sddsplot -graph=line,vary -unsup=y \
sddsplot -graph=line,vary -unsup=y \
-column=s,etax -yscale=id=2 79h2Twiss.twi -legend \
-column=s,beta? -yscale=id=1 79h2Twiss.twi -legend \
-column=s,Profile -overlay=xmode=norm,yfact=0.04 \
-graph=line,type=0 79h2Twiss.mag &
I installed the latest version of elegant and SDDS ToolKit to a WinXP computer which I took over from other colleague. After the installation was complete, I copied all old data files to the new PC and did a test run. I just did a simple run to get the Twiss functions of a storage ring. The elegant command worked as it used to be on my old PC. But I got an error message when I ran the script to generate plots of Twiss function. The screenshots of error message are shown in the following pictures. I can execute the sddsplot command in the terminal mode but not with the sample script I obtained from elegant example files. If I modified the script file as following, then I got the plot of Twiss function as I used to on my old PC. The 'tcl-brlapi: tcl bindings' package was installed in CYGWIN. The tclsh.exe is in c:\cygwin\bin.
Is it critical to include those lines and keywords which I commented out in the script?
Ping
-----------[script file to generate plots of Twiss function]----------------------------
#!/bin/sh
# \
#exec tclsh "$0" "$@"
#if ![file exists 79h2Twiss.log] {
# catch {exec elegant 79h2Twiss.ele > 79h2Twiss.log}
#}
#exec sddsplot -graph=line,vary -unsup=y \
sddsplot -graph=line,vary -unsup=y \
-column=s,etax -yscale=id=2 79h2Twiss.twi -legend \
-column=s,beta? -yscale=id=1 79h2Twiss.twi -legend \
-column=s,Profile -overlay=xmode=norm,yfact=0.04 \
-graph=line,type=0 79h2Twiss.mag &