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

Re: [TRNSYS-users] type1238 alert sound - .wav file



Nick,
  You can get Type1238 to play a sound at the last time step by using the equation:

play = GE(TIME,STOP)

the variable play will be 1 if time is greater than or equal to the simulation stop time.

If you make sure that Type1238 is the last component in your input file (by moving it to the bottom of the component order list) then you'll get your sound played almost at the very end of the simulation - the only thing that TRNSYS will do after that is it's "cleanups" - calling the components one more time, final integrations, and printing. If you need the sound played really truly after the simulation completes then you might be better off running the simulation from a batch file and putting in a Windows system command to play your *.wav file following the command to run the simulation in the batch file.
Best,
 david


On 8/3/2011 09:38, Nicholas LaHam wrote:
Would anyone happen to know the simplest way to set up Type1238 to play a sound after a simulation is complete?

I'm sure there are several possibilities, but I'm having trouble thinking of the best way.

Thanks,
Nick
_______________________________________________ TRNSYS-users mailing list TRNSYS-users@cae.wisc.edu https://mailman.cae.wisc.edu/listinfo/trnsys-users

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley@tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com