<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Nick,<br>
You can get Type1238 to play a sound at the last time step by
using the equation:<br>
<br>
play = GE(TIME,STOP)<br>
<br>
the variable play will be 1 if time is greater than or equal to the
simulation stop time. <br>
<br>
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.<br>
Best,<br>
david<br>
<br>
<br>
On 8/3/2011 09:38, Nicholas LaHam wrote:
<blockquote
cite="mid:CA+tQc8k9ExAgSF4RNj3LH7gePtrXuA5vhGYG+5F5d+0gJ_UqvQ@mail.gmail.com"
type="cite">Would anyone happen to know the simplest way to set up
Type1238 to play a sound after a simulation is complete?
<div><br>
</div>
<div>I'm sure there are several possibilities, but I'm having
trouble thinking of the best way.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Nick</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.cae.wisc.edu/listinfo/trnsys-users">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***************************
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
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</body>
</html>