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).
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' ?Muthalagappan Narayanan
Research Engineer and PhD Student
--
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
Working hours: Th. - Fr., 09:30 - 18:00