<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Christian,</p>
    <p> Make sure that the new dll they gave you is in both the
      ..\Trnsys17\UserLib\ReleaseDLLs\ and in the
      ..\Trnsys17\UserLib\DebugDLLs\ directories. If you still get error
      105 then check the *.f90 code (you can open it with a text
      editor). There should be a line near the top that says:</p>
    <p>!DEC$ATTRIBUTES DLLEXPORT :: TYPE3399</p>
    <p>the name on that line is the important one for loading the DLL.
      The name of the file is not relevant. If the number in the
      DLLEXPORT line is wrong then the author should be able to make a
      quick fix and give you another compiled version of it.</p>
    <p>kind regards,</p>
    <p> David</p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 05/24/2016 09:52, Christian Herløv
      Krintel via TRNSYS-users wrote:<br>
    </div>
    <blockquote
      cite="mid:1ba7729ddcd744b4d9c15a7473351acf@student.dtu.dk"
      type="cite">David,
      <br>
      Thank you for your reply. I have been in contact with the author
      of Type399, as you suggested, who sent a recompiled .dll file with
      a new type number.
      <br>
      However, when running the simulation, TRNSYS cannot find the new
      type in the dll libraries (error message 105).
      <br>
      I also tried to rename the dll file to "Type3399.dll", which is
      the new type name.
      <br>
      <br>
      I suspect that the source code was not adapted properly to the new
      type number. I have the .f90 source code. Is there any way for me
      to compile it myself? I tried using the following guide with the
      free g95 compiler, but I get errors. Maybe this guide is only for
      fixed format .for files?
      <br>
      <br>
<a class="moz-txt-link-freetext" href="http://sel.me.wisc.edu/trnsys/downloads/tutorials_and_examples/tutex17.htm">http://sel.me.wisc.edu/trnsys/downloads/tutorials_and_examples/tutex17.htm</a>
      <br>
      <br>
      Any help would be greatly appreciated :)
      <br>
      <br>
      Best Regards
      <br>
      Christian Krintel
      <br>
      Technical University of Denmark
      <br>
      <br>
      <br>
      David BRADLEY skrev den 2016-05-20 18:16:
      <br>
      <blockquote type="cite">Christain and Maroun,
        <br>
         I would be very careful about workarounds. If you run a
        simulation
        <br>
        that has one instance of a component in it, then drag out a
        second
        <br>
        instance and the results of the first change then it is almost
        certain
        <br>
        that the Type was not programmed in such a way as to allow there
        to be
        <br>
        multiple instances in a simulation. They are sharing some data
        <br>
        structures internally and there isn't really any way of getting
        around
        <br>
        that except if you use a compiler to make a copy of the Type,
        give it
        <br>
        a new Type number, then recompile and link it into its own DLL.
        <br>
         In general the better solution is to be in contact with the
        author of
        <br>
        Type399 (or with the distributor from whom you purchased it) and
        see
        <br>
        if they can assist.
        <br>
        kind regards,
        <br>
         David
        <br>
        <br>
        On 05/20/2016 11:02, NEMAR Maroun via TRNSYS-users wrote:
        <br>
        <br>
        <blockquote type="cite">​Christian,
          <br>
          I met almost the same problem two months ago, and I have
          solved
          <br>
          hardly. I don't know how can I show you through email, if you
          could
          <br>
          mail me your project and your PCM components to compare it
          with mine
          <br>
          then to fix it for you. If there any problem with you PCM
          component,
          <br>
          I'll make you know, if not I'll fix the problem the same way
          I've
          <br>
          done.
          <br>
          <br>
          Best regards,
          <br>
          MAROUN NEMAR
          <br>
          Building performance engineer
          <br>
          BUILDING ENERGY ANALYSIS & ENGINEERING
          <br>
          T: 0620548116
          <br>
          E: <a class="moz-txt-link-abbreviated" href="mailto:maroun.nemar@gmail.com">maroun.nemar@gmail.com</a>
          <br>
          web site : <a class="moz-txt-link-abbreviated" href="http://www.bureauveritas.fr">www.bureauveritas.fr</a> [1]
          <br>
          <br>
          2016-05-20 16:38 GMT+01:00 Christian Herløv Krintel
          <br>
          <a class="moz-txt-link-rfc2396E" href="mailto:trnsys-users@lists.onebuilding.org"><trnsys-users@lists.onebuilding.org></a>:
          <br>
          <br>
          <blockquote type="cite">Dear TRNSYS users,
            <br>
            I have a multizone building model, where I want to use two
            PCM
            <br>
            components (Type 399) to model the ceilings of two adjacent
            rooms.
            <br>
            When I run the simulation I noticed that the two components
            <br>
            somehow share information. The PCM temperature is the same
            in both
            <br>
            components.
            <br>
            <br>
            I tried to switch the component order in the Control Cards,
            which
            <br>
            changes the PCM temperature, but they are still equal.
            <br>
            How can I run two instances of a type side-by-side? Is this
            a
            <br>
            limitation in how Type 399 was programmed?
            <br>
            <br>
            Best Regards
            <br>
            Christian
            <br>
            _______________________________________________
            <br>
            TRNSYS-users mailing list
            <br>
            <a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
            <br>
            <br>
          </blockquote>
          <br>
        </blockquote>
<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>
        <br>
        <blockquote type="cite">
          <br>
          _______________________________________________
          <br>
          TRNSYS-users mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
          <br>
          <br>
        </blockquote>
<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>
        <br>
        <br>
        --
        <br>
        ***************************
        <br>
        David BRADLEY
        <br>
        Principal
        <br>
        Thermal Energy Systems Specialists, LLC
        <br>
        22 North Carroll Street - suite 370
        <br>
        Madison, WI  53703 USA
        <br>
        <br>
        P:+1.608.274.2577
        <br>
        F:+1.608.278.1475
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
        <br>
        <br>
        <a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
        <br>
        <a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a>
        <br>
        <br>
        <br>
        Links:
        <br>
        ------
        <br>
        [1] <a class="moz-txt-link-freetext" href="http://www.bureauveritas.fr/">http://www.bureauveritas.fr/</a>
        <br>
      </blockquote>
      _______________________________________________
      <br>
      TRNSYS-users mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
      <br>
<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>
      <br>
    </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>