<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear TRNSYS users,
<div><br>
</div>
<div>I am modelling a 3D multizone building with Type 56 in combination with MATLABs Type 155. MATLAB gives Type 56 a temperature for a boundary wall and receives a heat flux to this surface in return. Now the problem is, MATLAB runs multiple times (34x !)
 in one timestep of TRNSYS. I can see that by creating a step counter that increases each time MATLAB runs its iterative loop. I write the step counter and the TRNSYS time data to a file where I see it.</div>
<div><br>
</div>
<div>Additionally, the same thing happened when I tried to input a heat flux to a surface (wall gain inside).</div>
<div><br>
</div>
<div>I checked my time base is a multiple integer of TRNSYS time step (1 hour and 1 minute respectively).</div>
<div><br>
</div>
<div><span style="font-size: 10pt;">I looked into the time delay Type 661, but I'm not sure how this would help. TRNSYS receives MATLABS 34th output in the first time step, how can that be? Why is MATLAB running 34 times, before TRNSYS takes this output into
 its network?</span></div>
<div><br>
</div>
<div>Any help would be greatly appreciated, as I am in desperate need for a solution.</div>
<div><br>
</div>
<div>Thank you and best regards,</div>
<div><br>
</div>
<div>Daniel Weber</div>
<div><br>
</div>
<div>PS: I have attached the corresponding files. When changing simulation parameters (time step etc) they have to be changed in CONTAMs .prj file aswell (Simulation>Set Simulation Parameters).</div>
</div>
</body>
</html>