Project

General

Profile

Bug #1461

Neede upgrade of xsh_run in shadowvui macros to work with shadow3

Added by Sanchez del Rio, Manuel about 7 years ago.

Status:
New
Priority:
Normal
Start date:
12/10/2012
Due date:
% Done:

0%


Description

submitted by

Yes, in fact xsh_run does not work for shadow3 and many example workspaces need to be upgraded.

I have upgraded two examples (enclosed).

The changes to be done are (it is a bit longer, sorry):

; this is for shadow2
;xsh_run,'gen_source start.00'
; this is for shadow3
openw,unit,'tmp.inp',/get_lun
printf,unit,'source'
printf,unit,'systemfile'
printf,unit,'exit'
free_lun,unit
spawn,getenv('SHADOW3_BINARY')+" < tmp.inp"

;this is for shadow2
;xsh_run,'echo 0 | trace -m menu'

;this is for shadow3

openw,unit,'tmp.inp',/get_lun
printf,unit,'trace'
printf,unit,'systemfile'
printf,unit,'0'
printf,unit,' exit'
free_lun,unit
spawn,getenv('SHADOW3_BINARY')+" < tmp.inp"

I haven't tested in Windows, but I think the will be no problems. Let me know if you encounter problems.

Also, if you run the loop for more statistics, you do not need to run the "seed" application to change the seed if you initialize it (in the source window) to zero.

Regards,

Manuel

On 10/11/2012 06:30 PM, Craig Schwartz wrote:

Hey Manuel,
I'm trying to run a loop in shadowvui in windows vista but whenever I try to call xsh_run through a macro is tells me (briefly in a dos window before it closes) that 'xsh_run' is not recognized as an internal or external command, operable program or batch file. It then closes the dos prompt and goes onto the next command. This is making it impossible for me to run a loop to collect adequate statistics. My plan is to run an enormous number of rays (too many to handle in one run in memory) and accumulate them in a histogram calling
something like this
Histo1,'star.01',6,XRange=[-.0006,.0006],Save=hh
and then in the end calling something like this
XPlot,hh,Title='Acumulated histo'
assuming I don't run into memory issues.
However, I can't test if my plan will work because I can't get xsh_run to work on windows.
Any advice?
Thanks,
Craig

Also available in: Atom PDF