Rui,<BR><BR>You can do this using an equation, but you have to be creative.  Please consider the following.  This is an equation I made that sets the flow rate of a collector.  If the solar radiation is greater than 0.01, it sets the flow rate to 75.  If the solar radiation is less than 0.01, the flow rate is 5. "solar" is the input of the equation. In my case, I used total horizontal radiation.<BR><BR><FONT size=1>
<P>flow_rate=GT(solar,0.01)*75+LT(solar,0.01)*5</P></FONT>Using the Excel syntax: IF(SOLAR>0.01,75,5)<BR><BR>I hope this helps. Good luck!<BR><BR>Best,<BR><BR><BR>Matt Duffy<BR><!--{12197655093680}-->
<DIV id=replyfwdwrap style="BACKGROUND-POSITION: 50% top; BACKGROUND-IMAGE: url(http://webmail.fusemail.com/de/r_bg_img.gif); BACKGROUND-REPEAT: repeat-x"><STRONG>----- Original Message -----</STRONG><BR><STRONG>From:</STRONG> "Rui Jorge Marques Santos" <RUIJMS@NETC.PT><BR><STRONG>Sent:</STRONG> Tue, August 26, 2008 10:11<BR><STRONG>Subject:</STRONG> [TRNSYS-users] HELP: How to do an "IF" (logical test) not usingtype62 (call Excel)<BR><BR>
<DIV class=PrivateMsgDiv><!--{12197655093681}--><FONT face=arial,helvetica,sans-serif size=2>Hi again,<BR><BR>I've posted yesterday one request for help because of the problem that I'm having with the Type 62, as stated in the email below. But since I've no solutions for that till now, my doubt is now different.<BR><BR><STRONG>Is there anyway to do an "IF(logical_test, [value_if_true] , [value_if_false])" besides trough the Type 62?</STRONG> Because if there is, I can bypass the problem with the type 62 by replacing it by something else...<BR><BR>Many thanks<BR><BR>Rui Santos<BR><BR><BR>Yesterday post:<BR>"Hi<BR><BR>I'm currently using the TRNSYS 16 and when I run one of the examples<BR>from the TRNSYS to call the Excel ("Excel Schedule" or "Excel Sun<BR>Position" in the folder C:\Program Files\Trnsys16\Examples) I get an<BR>anoying error stating: "Access violation at address 10300096 in module<BR>'TRNDLL.DLL'. Read of address 00000000." and after pressing the "OK"!
 <BR>button on that box another one shows up stating "An unexpected error<BR>was encountered and TRNSYS will abort".<BR><BR>How do I solve this? Do I need to install a compiler or something<BR>else, besides TRNSYS? In my previous laptop (a Compaq) this type (62)<BR>work fine with no problems, unfortunately I have no longer that laptop<BR>and I'm currently working on a DELL. In this computer I was never able<BR>to call the Excel for TRNSYS!! I'm using Excel 2003.<BR><BR>Please help me with this because I'm finishing my master thesis about<BR>solar assisted air conditioning, and all my work was done in the<BR>previous computer in which the type62 worked. Now I need to put the<BR>program running again and I'm not being capable to do so because of<BR>that error with the Type62.<BR><BR>Thank you very much in advance!<BR><BR>Rui Santos" </FONT><BR><BR>________________________________________________________________________________<BR><FONT face=arial,helvetica,sans-serif><PRE><FON!
 T face=arial,helvetica,sans-serif>SEGURO AUTOMÓVEL Sempre Seguros<BR>
<A href="http://www.iol.pt/correio/rodape.php?dst=0803282" target=_new _fcksavedurl="http://www.iol.pt/correio/rodape.php?dst=0803282">Faça uma simulação e veja QUANTO PODE POUPAR!</A></FONT></PRE></FONT><!--{12197655093682}-->
<HR SIZE="1" noShade>
<PRE>_______________________________________________
TRNSYS-users mailing list
<A href="javascript:bodyCreateMail('TRNSYS-users%40cae.wisc.edu')" _fcksavedurl="javascript:bodyCreateMail('TRNSYS-users%40cae.wisc.edu')">TRNSYS-users@cae.wisc.edu</A>
<A href="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users" target=_blank _fcksavedurl="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users">https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users</A>
</PRE></DIV></DIV>