<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Adnan,</p>
<p> There is also an AND() function available. The function returns
a 1 if both the first and second arguments are 1. For instance:</p>
<p>zz = AND(x,y)</p>
<p>zz will be 1 if both x and y are 1.</p>
<p>There is a full list of functions in the 06-TRNEdit.pdf manual
(section 6.3.9.1)</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 02/17/2019 22:45, adnan rasheed via
TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG9tXZg5PsygMe_vbpmkRsB+mfPhO6MWho=8Ed8Aq9bWcP+osQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"><img class="mailtrack-img" alt=""
style="display:flex"
src="https://mailtrack.io/trace/mail/2e86d00c6073709ca375770bffb0905147a2d941.png?u=2838774"
moz-do-not-send="true" width="0" height="0"><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">---------- Forwarded message
---------<br>
From: <strong class="gmail_sendername" dir="auto">adnan
rasheed</strong> <span dir="ltr"><<a
href="mailto:adnan.upm.spain@gmail.com"
moz-do-not-send="true">adnan.upm.spain@gmail.com</a>></span><br>
Date: Sat, Feb 16, 2019 at 1:01 PM<br>
Subject: Re: [TRNSYS-users] Equation editor<br>
To: Jeff Thornton <<a href="mailto:thornton@tess-inc.com"
moz-do-not-send="true">thornton@tess-inc.com</a>><br>
</div>
<br>
<br>
<div dir="ltr"><img class="m_3802911282430920901mailtrack-img"
alt="" style="display:flex"
src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
moz-do-not-send="true" width="0" height="0">Thanks Jeff,
<div>The detail is like that...</div>
<div><br>
</div>
<div><font color="#0000ff">Case 1</font></div>
<div>
<u> </u><u>EQUATION Editor</u><u>
</u></div>
<div>Weather data --------------------------------- Solar
radiation Win_id_1
= 0 </div>
<div>
Win_id_2 = 1 <br>
Win id =
<font color="#000000"> G</font>T(<font color="#ff0000">Solar</font>_R,100)*<font
color="#0000ff">Win_ID_1</font>+(LT(<font
color="#ff0000">Solar_R</font>,100))*<font
color="#0000ff">Win_ID_2</font> ----------------------------------------------------------Type
56 input (for controlling Window) </div>
<div><br>
</div>
<div><font color="#0000ff">Case 2</font></div>
<div><br>
<div>
<u> EQUATION Editor
</u></div>
<div>
Win_id_1 </div>
<div>Weather data----------------------------------- Temp
Win_id_2<br>
Win id = <font color="#000000">G</font>T(<font
color="#ff0000">Temp</font>,20)*<font color="#0000ff">Win_ID_1</font>+(LT(<font
color="#ff0000">Temp</font>,20))*<font color="#0000ff">Win_ID_2</font> </div>
</div>
<div><br>
</div>
<div>BOTH CASE 1 AND 2 WORKS FINE.</div>
<div><br>
</div>
<div><font color="#0000ff">Case 3 </font></div>
now case three i want to control both temp and solar
radiation combine and need to get one output for TYPE 56
<div><br>
</div>
<div>Like when temp > 20 and solar radiation > 100
output should be 0.. and when temp < 20 and solar
radiation < 100 out put should be 1</div>
<div><br>
</div>
<div>Hope this explanation will help. </div>
<div>Thank you very much for looking into my problem.</div>
<div><br>
</div>
<div>Regards</div>
<div>Adnan</div>
<div><br>
<div class="m_3802911282430920901mt-signature">
<table cellspacing="0" cellpadding="8" border="0">
<tbody>
<tr>
<td> <a
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&"
style="text-decoration:none" target="_blank"
moz-do-not-send="true"> <img
src="https://s3.amazonaws.com/mailtrack-signature/sender_notified.gif"
alt="Mailtrack" moz-do-not-send="true"
width="32" height="32"> </a> </td>
<td> <span style="color:#777">Sender notified by</span>
<br>
<a
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&"
class="m_3802911282430920901mt-install"
style="color:#4374f7" target="_blank"
moz-do-not-send="true">Mailtrack</a> <span
style="color:transparent;font-size:0">02/16/19,
12:56:33 PM</span> </td>
<td> <br>
</td>
</tr>
</tbody>
</table>
</div>
<div><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Feb 15, 2019 at
11:50 PM Jeff Thornton <<a
href="mailto:thornton@tess-inc.com" target="_blank"
moz-do-not-send="true">thornton@tess-inc.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="auto">Adnan,
<div><br>
</div>
<div>You didn’t give us enough information to be able to
write the equations. What happens when the radiation
is high but the temperature is low? And the opposite
condition? But we can set it up in a basic format
for you to edit:</div>
<div><br>
</div>
<div>Equations 3</div>
<div>SolarHigh = GT(Solar_R,100)</div>
<div>TempHigh = GT(Temp,100)</div>
<div>Win_ID =
SolarHigh*TempHigh*ID1+SolarHigh*(1-TempHigh)*
ID2+(1-SolarHigh)*TempHigh*ID3+(1-SolarHigh)*(1-TempHigh)*
ID4</div>
<div><br>
</div>
<div>Basically set up your equation to account for all 4
outcomes. Just fill in the correct ID in the equation
above and you should be good.</div>
<div><br>
</div>
<div>Jeff - TESS</div>
<div><br>
<div
id="m_3802911282430920901gmail-m_-6820840382148237043AppleMailSignature">Sent
from my iPhone</div>
<div><br>
On Feb 15, 2019, at 4:48 AM, adnan rasheed via
TRNSYS-users <<a
href="mailto:trnsys-users@lists.onebuilding.org"
target="_blank" moz-do-not-send="true">trnsys-users@lists.onebuilding.org</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr"><img
class="m_3802911282430920901gmail-m_-6820840382148237043mailtrack-img"
alt="" style="display:flex"
src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
moz-do-not-send="true" width="0" height="0">Hello
everyone,
<div><br>
</div>
<div>i am using simulation studio's equation
editor, two equations with different
parameters set values separately, and they
work fine now i want to control two parameters
together with two equation combine how i can
do this</div>
<div><br>
</div>
<div>my equations are e.g</div>
<div><br>
</div>
<div>1) win_id_input =<font color="#000000"> INT(G</font>T(<font
color="#ff0000">Solar</font>_R,100)*<font
color="#0000ff">Win_ID_1</font>+(LT(<font
color="#ff0000">Solar_R</font>,100))*<font
color="#0000ff">Win_ID_2</font> </div>
<div><br>
</div>
<div> 2)
win_id_input =<font color="#000000"> INT(</font>GT(<font
color="#ff0000">temp,</font>100)*<font
color="#0000ff">Win_ID_1</font>+(LT(<font
color="#ff0000">temp,100</font>))*<font
color="#0000ff">Win_ID_2</font> <br
clear="all">
<div><br>
</div>
need one out put both conditions together, </div>
<div>Thanks in advance </div>
<div><br>
</div>
<div><br>
<div dir="ltr"
class="m_3802911282430920901gmail-m_-6820840382148237043gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><font face="georgia,
serif" color="#666666">Adnan Rasheed</font>
<div><font face="georgia, serif"
color="#666666">PhD Researcher</font></div>
<div><font face="georgia, serif"
color="#666666">Kyungpook National
University</font></div>
<div><font face="georgia, serif"
color="#666666">Daegu, South
Korea.</font></div>
<div><font face="georgia, serif"
color="#666666">+82-102762-0105</font></div>
<div><font face="georgia, serif"
color="#666666"><a
href="mailto:adnan.upm.spain@gmail.com"
target="_blank"
moz-do-not-send="true">adnan.upm.spain@gmail.com</a>,
<a
href="mailto:adnanrasheed@knu.ac.kr"
target="_blank"
moz-do-not-send="true">adnanrasheed@knu.ac.kr</a></font></div>
</div>
</div>
</div>
</div>
<br>
</div>
<br>
<div
class="m_3802911282430920901gmail-m_-6820840382148237043mt-signature">
<table cellspacing="0" cellpadding="8"
border="0">
<tbody>
<tr>
<td> <a
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&"
style="text-decoration:none"
target="_blank"
moz-do-not-send="true"> <img
src="https://s3.amazonaws.com/mailtrack-signature/sender_notified.gif"
alt="Mailtrack"
moz-do-not-send="true" width="32"
height="32"> </a> </td>
<td> <span
style="color:rgb(119,119,119)">Sender
notified by</span> <br>
<a
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&"
class="m_3802911282430920901gmail-m_-6820840382148237043mt-install"
style="color:rgb(67,116,247)"
target="_blank"
moz-do-not-send="true">Mailtrack</a>
<span
style="color:transparent;font-size:0px">02/15/19,
7:45:22 PM</span> </td>
<td> <br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>TRNSYS-users mailing list</span><br>
<span><a
href="mailto:TRNSYS-users@lists.onebuilding.org"
target="_blank" moz-do-not-send="true">TRNSYS-users@lists.onebuilding.org</a></span><br>
<span><a
href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org"
target="_blank" moz-do-not-send="true">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a></span><br>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="m_3802911282430920901gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><font face="georgia, serif"
color="#666666">Adnan Rasheed</font>
<div><font face="georgia, serif" color="#666666">PhD
Researcher</font></div>
<div><font face="georgia, serif" color="#666666">Kyungpook
National University</font></div>
<div><font face="georgia, serif" color="#666666">Daegu,
South Korea.</font></div>
<div><font face="georgia, serif" color="#666666">+82-102762-0105</font></div>
<div><font face="georgia, serif" color="#666666"><a
href="mailto:adnan.upm.spain@gmail.com"
target="_blank" moz-do-not-send="true">adnan.upm.spain@gmail.com</a>,
<a href="mailto:adnanrasheed@knu.ac.kr"
target="_blank" moz-do-not-send="true">adnanrasheed@knu.ac.kr</a></font></div>
</div>
</div>
</div>
</div>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><font face="georgia, serif" color="#666666">Adnan
Rasheed</font>
<div><font face="georgia, serif" color="#666666">PhD
Researcher</font></div>
<div><font face="georgia, serif" color="#666666">Kyungpook
National University</font></div>
<div><font face="georgia, serif" color="#666666">Daegu,
South Korea.</font></div>
<div><font face="georgia, serif" color="#666666">+82-102762-0105</font></div>
<div><font face="georgia, serif" color="#666666"><a
href="mailto:adnan.upm.spain@gmail.com"
target="_blank" moz-do-not-send="true">adnan.upm.spain@gmail.com</a>,
<a href="mailto:adnanrasheed@knu.ac.kr"
target="_blank" moz-do-not-send="true">adnanrasheed@knu.ac.kr</a></font></div>
</div>
</div>
</div>
</div>
<br>
<div class="mt-signature">
<table style="user-select: none;" cellspacing="0"
cellpadding="8" border="0">
<tbody>
<tr>
<td> <a
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&"
class="" style="text-decoration:none"
moz-do-not-send="true"> <img
src="https://s3.amazonaws.com/mailtrack-signature/sender_notified.gif"
alt="Mailtrack" class="" moz-do-not-send="true"
width="32" height="32"> </a> </td>
<td> <span style="color:#777">Sender notified by</span>
<br>
<a
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&"
class="mt-install" style="color:#4374f7"
moz-do-not-send="true">Mailtrack</a> <span
style="color:transparent;font-size:0">02/18/19,
1:45:00 PM</span> </td>
<td> <br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
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>