|
Zurück zur FAQ Übersicht

Running TRNSYS in batch files or in hidden mode

Running TRNSYS in batch mode

You can run TRNSYS in batch mode by adding a „/n“ switch to the command line, e.g.:
„C:\TRNSYS18\Exe\TRNexe.exe“
„C:\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.


Running TRNSYS in Hidden mode

You can run TRNSYS in hidden batch mode by adding a „/h“ switch to the command line, e.g.:
„C:\TRNSYS18\Exe\TRNexe.exe“
„C:\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).