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

David BRADLEY d.bradley at tess-inc.com
Wed Aug 3 08:38:59 PDT 2011


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 at 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 at tess-inc.com

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20110803/59bdd21d/attachment-0001.htm>


More information about the TRNSYS-users mailing list