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

RE: Control Trnsys by command line



Jochen,

>From the TRNSYS FAQ on the SEL website, I found:

Q: How can I run TRNSYS (perhaps from another program or batch file) and
avoid having to click 'Continue' or 'Yes' at the end of each simulation?

A: From the command line, the "/N" switch is used to tell TRNSYS32.EXE
that you don't want the dialog box at the end of the simulation. For
example, to run the input file called EX1.DCK such that no dialog box is
produced at the end of the simulation, the following command line
statement would be used:

    TRNSYS32.EXE EX1.DCK /N

Nate

Nate Blair
Senior Energy Analyst
National Renewable Energy Laboratory
M/S 2721
1617 Cole Boulevard
Golden, CO  80401
(303) 384-7426
FAX: (303)-384-7411
nate_blair@xxxxxxxx <mailto:nate_blair@xxxxxxxx> 
 



-----Original Message-----
From: owner-trnsys@xxxxxxxxxxxxxxxxxxx
[mailto:owner-trnsys@xxxxxxxxxxxxxxxxxxx] On Behalf Of Jochen Wriske
Sent: Wednesday, June 16, 2004 8:09 AM
To: trnsys@xxxxxxxxxxxxxxxxxxx
Subject: Control Trnsys by command line


Dear TRNSYS users,
 
is there a way to avoid the display of the 'simulation completed' dialog
after trnsys has finished simulating? I would like to do multiple
simulations in a kind of batch mode in VB by executing somthing like

Shell ("C:/trnsys15/trnsys fileXYZ.dck").

This works fine, but I have to confirm the mentioned dialog before I'm
able to work with the result files. That is quite tideous.

Of course there are some system near solutions like getting handle of
the dialog window and emulating the OK click, but my hope is that there
is a switch somewhere in a configuration file that tells trnsys to
finish simulating silently. I could not find something usefull in the
manual concerning this problem, but maybe someone has a good idea?

Thanks and regards,

Jochen