<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Pablo</p>
    <p>  Interesting question! we are moving this email list to a forum
      that provides searchable archives. I posted your question (and
      responded to it) on the forum. You can visit:
      <a class="moz-txt-link-freetext" href="https://trnsys.org/community/">https://trnsys.org/community/</a></p>
    <p>kind regards,</p>
    <p> David</p>
    <p>  <br>
    </p>
    <div class="moz-cite-prefix">On 6/20/2023 7:05 AM, Pablo Calleja via
      TRNSYS-users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFWsQopFpP48Bi7-g2rJ20tVrRr4qpEKpDxAEAx4yDexQNp9Bg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello everyone,
        <div><br>
        </div>
        <div>I am trying to develop a code por a new Type that simulates
          a tank conected to a freshwater source, with three electric
          resistances inside of it in order to produce steam.</div>
        <div><br>
        </div>
        <div>It's operation follows this path: </div>
        <div>- By pushing a button, the tank is switched on, letting
          water inside the tank. </div>
        <div>- When the water reaches the minimum level of the tank
          (there's a sensor that sends a signal to the machinery
          opperating the system), the three resistances switch on.</div>
        <div>- There is another sensor that sends another signal when
          the water level reaches the maximum capacity of the tank. When
          this sensor detects liquid, the inlet flow is shut down.</div>
        <div>- When the water level goes down lower than the minimum
          capacity, the inlet flow is switched on again.</div>
        <div>- There is also a thermometre that measures the temperature
          inside the tank. If that temperature is lower than the maximum
          temperature, the resistances are switched on. Once we reach
          maximum temperature, they are switched off, until the minimum
          temperature is reached and the resistances are switched on
          again.</div>
        <div><br>
        </div>
        <div>My main question is: <b>since the water level is measured
            by sensors, how can I write down the commands that allow the
            resistances and inlet flow switching on and off? </b>There
          will be calculations inside, but the main problem I face is
          this lack of knowledge for incorporating sensor's coding
          inside this new Type and if this signals should be an input
          with a proper dimmension.</div>
        <div><br>
        </div>
        <div>Thanks in advance for your time, hopefully somebody can
          help me with this issue.</div>
        <div><br>
        </div>
        <div>Kind Regards,</div>
        <div><br>
        </div>
        <div>Pablo Calleja</div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></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 System Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
<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>