<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Anthonie,<br>
I am no expert in C++. However, writing new components and using
the templates requires a pretty deep understanding of the compiler
you are using and of how to control the its settings. Unless you
have the settings correct (compatible with those of the TRNDll)
you're going to have a very hard time getting your component to
communicate with the TRNDll. <br>
<br>
As to your specific question, I believe that xout[n] (where n is
an integer) refers to the nth element of an array. The code<br>
<br>
xout[0] = 3.0 ;<br>
<br>
sets the 0th element of the xout[] array to a value of 3<br>
<br>
I would guess that the association between the output and the
parameter is that the parameter dictates how many outputs there are
going to be. In your code, you need to declare an array (xout
perhaps) that is at least as big as the maximum allowable value of
the parameter. Then you need to loop through the array, setting each
element of the array to the correct output value. <br>
<br>
regards<br>
David<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/01/2015 07:46, Anthonie Vandamme
wrote:<br>
</div>
<blockquote cite="mid:DUB127-W787C8E75448CFC43DF5BAAE62D0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Dear,
<div><br>
</div>
<div>I'm trying to make a new component. I declared some
outputs, that are in cycle associated with a parameter. When I
export as C++, i receive a nice template. </div>
<div><br>
</div>
<div>This is a normal output:</div>
<div>xout[0]=?; //normal ouput</div>
<div><br>
</div>
<div>But how can i acces the cycle?? </div>
<div><br>
</div>
<div>like this?:</div>
<div>xout[0][<b>parameter</b>]=????</div>
<div><br>
</div>
<div>How?</div>
<div><br>
</div>
<div>Thx.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Anthonie</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<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>