<I tried doing that by subtracting the value of the integrator from itself, but as mentioned above, it doesnt seem to work.><br />
<br />
Well to reset the integrator you would have to subtract the current value of the integrator DIVIDED BY THE TIMESTEP to effectively zero the integrator.  Remember it's adding Input*Timestep to the total each time.<br />
<br />
Jeff<br />
<br />
<br />
<br />
<br />
Jeff Thornton <br />
President - TESS, LLC <br />
<br />
22 North Carroll Street - Suite 370<br />
Madison WI 53703 USA <br />
<br />
Phone: 608-274-2577 <br />
Fax: 608-278-1475 <br />
E-mail: thornton@tess-inc.com <br />
Web: www.tess-inc.com<br />
<br />
<br />
<br />
<!--replyfwdwrap-->
<div id="replyfwdwrap" style="background-position: 50% top; background-image: url(http://webmail3.mailanyone.net/images/mail/fwdreplywrap.gif); background-repeat: repeat-x"><strong>----- Original Message -----</strong><br />
<strong>From:</strong> fgammoh@stud.fh-offenburg.de<br />
<strong>Sent:</strong> Wed, September 23, 2009, 7:18 AM<br />
<strong>Subject:</strong> [TRNSYS-users] Integrator negative vlaue<br />
<br />
<div style="font-size: 12px; font-family: Arial">Hello,<br />
What happens when you feed in a negative value into an integrator? <br />
I would like to subtract something rather than add, but an itegrator doesnt seem to do that. Once i feed in a negative value, It doesnt integrate anymore, the value remains the same.<br />
<br />
Or if that doesnt work, I would like to reset the itegrator under certain conditions. Meaning, when the integrator recieves a value of 0, it is reset to zero too. <br />
I tried doing that by subtracting the value of the integrator from itself, but as mentioned above, it doesnt seem to work.<br />
<br />
Thanks,<br />
Farah<br />
<br />
<br />
_______________________________________________<br />
TRNSYS-users mailing list<br />
<a href="javascript:parent.CreateMailTo('TRNSYS-users%40cae.wisc.edu')">TRNSYS-users@cae.wisc.edu</a><br />
<a href="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users" target="_blank">https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users</a></div>
</div>