[TRNSYS-users] subcall process

Marion Hiller Hiller at Transsolar.com
Thu Jul 1 23:02:45 PDT 2021


No, there is no "soft" closing when such an error occurs in TRNBuild.
I'm not in favor for this but for parametric studies I see a benefit.

Regards,

Marion


Transsolar Software Team
hotline at transsolar.com

Transsolar
Stuttgart | Munich | Paris | New York

Transsolar Energietechnik GmbH | Curiestrasse 2 | 70563 Stuttgart | Germany
CEO: Matthias Schuler, Thomas Auer, Stefan Holst, Dieter Schnelle
Registered at Amtsgericht Stuttgart HRB 23347 | USt-IdNr.: DE 152272639


Von: TRNSYS-users <trnsys-users-bounces at lists.onebuilding.org> Im Auftrag von David BRADLEY via TRNSYS-users
Gesendet: Donnerstag, 1. Juli 2021 17:27
An: Maurice Charbit - OZE-ENERGIES <mch at oze-energies.com>; TRNSYS users mailing list at OneBuilding.org <trnsys-users at lists.onebuilding.org>
Cc: David BRADLEY <d.bradley at tess-inc.com>
Betreff: Re: [TRNSYS-users] subcall process


I am afraid I do not know of a way to suppress errors that are generated by TRNBuild. Again I don't know Python but in some other scripting languages there is the possibility of specifying a "time out" such that if the called process doesn't respond within a specified amount of time the script can proceed anyway.

kind regards,

 David




On 07/01/2021 10:02, Maurice Charbit - OZE-ENERGIES wrote:
Hi David

Thank you for the response. I did what you propose. More specifically my prog is

    exe_trnsys        = subprocess.call([cmdtrnsysExe,file_DCK,"/h"])

The problem is the following:

when TRNSYS crashes, as for example when a bad parameter is present in file .B18 as incompatible thickness, TRNSYS stops and opens a window to indicate a problem and waits for a manual answer, more specifically you have to click on the 'OK' button to exit TRNSYS. As long as you dont click on the button TRNSYS is waiting.

I would like to exit by program and replace the manual response by soft.

regards

________________________________
De : David BRADLEY <d.bradley at tess-inc.com><mailto:d.bradley at tess-inc.com>
Envoyé : jeudi 1 juillet 2021 16:36
À : TRNSYS users mailing list at OneBuilding.org <trnsys-users at lists.onebuilding.org><mailto:trnsys-users at lists.onebuilding.org>
Cc : Maurice Charbit - OZE-ENERGIES <mch at oze-energies.com><mailto:mch at oze-energies.com>
Objet : Re: [TRNSYS-users] subcall process


Maurice,

  The exe is probably asking you for the name of the input file that you want to run. The Windows command line to launch Trnsys and give it an input file name follows. I have never tried to implement this from Python but hopefully it works anyway.

c:\Trnsys18\Exe\TRNExe64.exe c:\Trnsys18\MyProjects\Project1\inputFile.dck /n /h

The /n flag is optional and suppresses the acknowledgement that is normally required at the end of the simulation. Be aware that this flag will also suppress the needed acknowledgement if an error occurs during the simulation.

The /h flag is also optional and forces Trnsys to run completely hidden in the background.

kind regards,

 David


On 07/01/2021 06:52, Maurice Charbit - OZE-ENERGIES via TRNSYS-users wrote:

Hi all,



I am using subcall.process in Python to launch trnsys.exe.

When an error occurs in trnsys, trnsys opens a window and asks for a MANUAL response to exit from the .exe. How can I do to force by program this response?



Regards

Maurice







Provenance : Courrier<https://go.microsoft.com/fwlink/?LinkId=550986> pour Windows 10





_______________________________________________

TRNSYS-users mailing list

TRNSYS-users at lists.onebuilding.org<mailto:TRNSYS-users at lists.onebuilding.org>

http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

--

***************************

David BRADLEY

Principal

Thermal Energy Systems Specialists, LLC

3 North Pinckney Street - suite 202

Madison, WI  53703 USA



P:+1.608.274.2577

d.bradley at tess-inc.com<mailto:d.bradley at tess-inc.com>



http://www.tess-inc.com

http://www.trnsys.com

--

***************************

David BRADLEY

Principal

Thermal Energy Systems Specialists, LLC

3 North Pinckney Street - suite 202

Madison, WI  53703 USA



P:+1.608.274.2577

d.bradley at tess-inc.com<mailto: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/20210702/34af74b5/attachment.html>


More information about the TRNSYS-users mailing list