[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Exit the TRNEXE without the promt tab



Hello,

You can run TRNSYS silently using flags.  From the manual:

9.8. Running TRNSYS in batch files or in hidden mode

9.8.1. Running TRNSYS in batch mode

You can run TRNSYS in batch mode by adding a "/n" switch to the command line, e.g. (on one line):

"C:\Program Files\TRNSYS18\Exe\TRNExe.exe"
"C:\Program Files\TRNSYS18\Examples\SDHW\SDHW.dck"
/n

In TRNSYS 18, the behavior of the /n switch was changed so that it also skips the dialog box that informs you about errors in the simulation. Note that this is only true for actual TRNSYS errors, not for exceptions generated by the code such as floating point overflows, etc.

9.8.2. Running TRNSYS in Hidden mode

You can run TRNSYS in hidden batch mode by adding a "/h" switch to the command line, e.g. (on one line):

"C:\Program Files\TRNSYS18\Exe\TRNExe.exe"
"C:\Program Files\TRNSYS18\Examples\SDHW\SDHW.dck"
/h

The "/h" switch implies the "/n" switch and makes TRNSYS completely invisible (you can check that it is running by launching Windows' task manager and look for a process called TRNExe).



Kind regards,
John

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, January 13, 2020 6:41 AM, Muthalagappan Narayanan via TRNSYS-users <trnsys-users@lists.onebuilding.org> wrote:

Dear TRNSYS Users,

I am trying to optimise variables in TRNSYS using Matlab by calling trnexe using MSDOS command. It is kind of similar to the Genopt but one problem I have is the pop up tab which appears after the simulation is complete. It requires either to click a 'Yes' to exit when plotter are on otherwise to click 'continue' when plotters are switched off. And only after exiting, the values are written in the output files. 

Is there a way to automatically exit TRNEXE when the simulation is completed without having to click on 'Yes' or 'Continue' ?

With Regards,

Muthalagappan Narayanan

Research Engineer and PhD Student

 

2019-02_THU_Signatur_60

--

Ulm University of Applied Sciences

Muthalagappan Narayanan

Research Engineer and PhD Student

Institute for Energy- and Drive Technology

P-207, Eberhard-Finckh Straße 11,

89075 Ulm, Germany

Tel.: +49 (0)731/50-16 939

Fax: +49 (0)731/50-28 363

E-Mail: Muthalagappan.Narayanan@thu.de

www.hs-ulm.de 

Working hours: Th. - Fr., 09:30 - 18:00

 

cid:image001.png@01D320B4.E96A8270