[TRNSYS-users] Close TRNSYS Automation

David BRADLEY d.bradley at tess-inc.com
Mon Sep 17 08:05:11 PDT 2012


Andrea,
   adding the /n switch at the end of the command line to call the 
TRNSYS simulation will supress the need to click the "finish" button at 
the end of the simulation. Adding a /h switch to the command line will 
cause TRNSYS to run completely hidden in the background.

"c:\Trnsys17\Exe\TRNExe.exe" "c:\Trnsys17\Path\To\DckFile.dck" /n

best,
  David


On 9/17/2012 08:04, Andrea Sauer wrote:
> Dear all,
>
> I am currently working on a parameter variation.
> A Python script is the base for this.
> This Python script set the variables in the input file for TRNSYS.
> The Python script also start the simulation of TRNSYS (For this 
> purpose the command in Python = subprocess).
>
> Problem: The Python script can not detect when TRNSYS finished the 
> simulation. The Python script can only detected when TRNSYS is closed.
>
> Question: Is there a way TRNSYS automatically close after the 
> simulation has been run?
> Or is there a way to close the OnlinePlotter automatically after the 
> simulation has been run?
>
> Alternatively: Does anyone know of a way to do this through Python?
>
> Thank you!
>
> Kind regards,
>
> Andrea  Sauer
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://mailman.cae.wisc.edu/listinfo/trnsys-users

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20120917/2378366c/attachment-0001.htm>


More information about the TRNSYS-users mailing list