Using SolTrace CLI without UI
chetan201 opened this issue · comments
Hi @mjwagner2,
First of all, thanks for offering the community an excellent tool like SolTrace. I am currently using it for some ray tracing + electrical model applications and would like to learn how to use it to run scenes without the UI on command line for massive parallelization of simulations in a cluster.
Would you be able to advice?
Thanks,
Chetan.
The current command line version can be downloaded from the NREL file sharing website.
We do have the code to compile as a console app available in the source files, mostly within /app/console.cpp
, but instructions for compiling and code testing haven't been completed recently. I will leave this issue open until the following are addressed:
- Documentation is added on the SolTrace wiki describing the process for compiling the console app and for using it
- Compiler compatibility and code testing is completed on Windows and Linux platforms
Also see here, Question
Can SolTrace be run from a command line?
I am using this, with forward slashes on Windows:
SolTrace.exe -s c:/path/to/script.lk
Hi, the command line
SolTrace.exe -s c:/path/to/script.lk
that worked fine with Soltrace 2012.7.9 does not seem to work any more with Soltrace 3.0.0, is there any workaround ?
Thanks
Antonio
The current command line version can be downloaded from the NREL file sharing website.
We do have the code to compile as a console app available in the source files, mostly within
/app/console.cpp
, but instructions for compiling and code testing haven't been completed recently. I will leave this issue open until the following are addressed:
- Documentation is added on the SolTrace wiki describing the process for compiling the console app and for using it
- Compiler compatibility and code testing is completed on Windows and Linux platforms
The console app link is not working..
Also is there any version working this.. I need to run simulations from command line.
May I please have link for
"The current command line version can be downloaded from the NREL file sharing website."
I've updated my comment above with a new link that should be working now.
Hello,
Thanks for updating the link, but I don't see any option of running the lk script directly from command line. The description given on the FAQ's for running lk script directly also is not working and always give error failed to open file.
Could you please help and suggest anything.
Hi @mjwagner2,
My colleagues and I are using Soltrace and we were wondering whether there is any way to suppress a popup that appears when we run soltrace from the command line interface. The popup is a 'Trace Progress' window with a series of blue bars racing to the right to indicate the current run's progress.
We are currently using the following commands, but have been unsuccessful.
si = subprocess.STARTUPINFO()
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
rv = subprocess.call(r'C:/SolTrace/2012.7.9/SolTrace.exe -s C:\temp\soltrace\temp\20190611_110534_wE8d2QHo\wE8d2QHo.lk', startupinfo=si)
Any help would be much appreciated! Thank you in advance.
Hello,
I am not able to call Soltrace with the command line instructions reported in https://www.nrel.gov/csp/soltrace-faqs.html
Soltrace shows an error message "Failed to open file".
Could you help with me or suggest an alternative solution?
Thanks in advance