[TRNSYS-users] Matlab/Simulink

Hanani Abd Wahab ha65 at students.waikato.ac.nz
Sun Mar 22 13:48:43 PDT 2009


HI,

I am new user in TRNSYS . I want to couple between matlab/Simulink and
TRNSYS but I dont know how.
I'd understand that type 155 in TRNSYS is the component to couple both
software agian I dont have any idea how .mdl file work with
TRNSYS........

Let's say like this: I want to design controller using
matlab/Simulink. and I have the model in Simulink  .mdl file. How I
can integrate  this file with TRNSYS? What should I do first,next and
so on....

Can anyone help me to solve this problem?

Thanks a lot in advance,

Regards,

Hanani

2009/3/21  <trnsys-users-request at cae.wisc.edu>:
> Send TRNSYS-users mailing list submissions to
>        trnsys-users at cae.wisc.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
> or, via email, send a message with subject or body 'help' to
>        trnsys-users-request at cae.wisc.edu
>
> You can reach the person managing the list at
>        trnsys-users-owner at cae.wisc.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of TRNSYS-users digest..."
>
> Today's Topics:
>
>   1. Runtime error using Type155 Matlab Calling (baragiak at katamail.com)
>   2. TRNSYS message 14 (fr?d?ry lavoye)
>   3. Re: TRNSYS message 14 (David Bradley)
>
>
> ---------- Forwarded message ----------
> From: baragiak at katamail.com
> To: <trnsys-users at cae.wisc.edu>
> Date: Fri, 20 Mar 2009 09:41:44 +0100
> Subject: [TRNSYS-users] Runtime error using Type155 Matlab Calling
> Dear all,
>
> I wrote some small programs in matlab using .m files. I then coupled these .m files with Trnsys16 Studio using the type155 component. They work fine individually, but when i try to make them comunicate, linking outputs from one of them to inputs of another one, i receive this error message:
>
> "Runtime error!
>
> Program: C:\Program Files\Trnsys16\Exe\TRNExe.exe
>
> This application has requested the Runtime to terminate it in an unusual way."
>
> On the other end, liniking the Type155 with a different component, as the weather data reading and processing Type109, doesn't give me the same problem.
>
>
>
> Can anyone help me to solve this problem?
>
> Thank a lot in advance
> Best regards
>
> Giacomo
> ________________________________
> Nuova grafica e nuove funzionalità! Crea subito Gratis la tua nuova Casella di Posta Katamail
>
> ---------- Forwarded message ----------
> From: "frédéry lavoye" <fredery.lavoye at gmail.com>
> To: trnsys-users at cae.wisc.edu
> Date: Fri, 20 Mar 2009 12:17:40 +0100
> Subject: [TRNSYS-users] TRNSYS message 14
> Dear trnsys users,
> I'm simulating an energetic concept on trnsys simulation studio and i've this error message:
> "TRNSYS message 14; the trnsys processor has reported an error while trying to process EQUATIONS and CONSTANTS in the provided TRNSYS input file. The maximum allowable number of constants + equations has been exceeded. Either reduce the number of equations and constants in the input file or increase the limit on the number of equations and constants. If the limit is to be increased, the variable nMaxEquations should be modified in the TrnsysConstants file. The TRNSYS source code will then have to be re-compiled and a new TRNSYS dynamic link librairy created."
>
> I cannot reduce the number of equations and constants otherwise my model is false. How can i re-compiled my TRNSYS source code and is there any risk in doing that ? Furthermore, where can i find the Trnsysconstants file ?
> Thanks for your answer.
> Best Regards.
> Frédéry.
>
> 2009/3/19 <trnsys-users-request at cae.wisc.edu>
>>
>> Send TRNSYS-users mailing list submissions to
>>        trnsys-users at cae.wisc.edu
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>> or, via email, send a message with subject or body 'help' to
>>        trnsys-users-request at cae.wisc.edu
>>
>> You can reach the person managing the list at
>>        trnsys-users-owner at cae.wisc.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of TRNSYS-users digest..."
>>
>> Today's Topics:
>>
>>   1. Runtime error using Type155 Matlab Calling (Giacomo Barale)
>>   2. Re: (no subject) (David Bradley)
>>
>>
>> ---------- Message transféré ----------
>> From: "Giacomo Barale" <stage02 at ferasrl.it>
>> To: <trnsys-users at cae.wisc.edu>
>> Date: Thu, 19 Mar 2009 10:34:41 +0100
>> Subject: [TRNSYS-users] Runtime error using Type155 Matlab Calling
>> Dear all,
>>
>> I wrote some some small programs in matlab using .m files. I then coupled these .m files with Trnsys16 Studio using the type155 component. They work fine individually, but when i try to make them comunicate, linking outputs from one of them to inputs of another one, i receive this error message:
>>
>> "Runtime error!
>>
>> Program: C:\Program Files\Trnsys16\Exe\TRNExe.exe
>>
>> This application has requested the Runtime to terminate it in an unusual way."
>>
>> On the other end, liniking the Type155 with a different component, as the weather data reading and processing Type109, doesn't give me the same problem.
>>
>>
>>
>> Can anyone help me to solve this problem?
>>
>> Thank a lot in advance
>> Best regards
>>
>> Giacomo
>>
>> ---------- Message transféré ----------
>> From: David Bradley <bradley at tess-inc.com>
>> To: Giorgos Fragogiannis <gfrago at metal.ntua.gr>
>> Date: Thu, 19 Mar 2009 11:20:21 -0500
>> Subject: Re: [TRNSYS-users] (no subject)
>> Giorgos,
>>   I would stay with Type753 (heating coil) and Type508 (cooling coil) if indeed that is how the building is being heated and cooled. I am not sure how you are controlling the system but I would recommend putting the zones into temperature level control and adding a thermostat that turns on and off the flow to each coil depending on the temperature of the zone (instead of calculating a zone load and then somehow imposing that on the coils. You may also need to use some diverting valves (Type11) to control whether the water from your heat pump is going to the heating or the cooling coil.
>> Kind regards,
>>  David
>>
>>
>> Giorgos Fragogiannis wrote:
>>
>> Dear all
>>
>> I am new user in trnsys and I try to simulate o ground source heat pump system connected to o 7 zone building (type 56), in order to study the interrelation between  ground, HP (water to water), fan coil and building.
>>
>> My question is what type of fan coil I must used in order to meet  the  heating and cooling demand?
>>
>> Until now I tried  to solve this problem by using type 753 and 508 simultaneously, but it is difficult to controlled it!
>>
>>
>>
>> Is the right way to use of water to air heat pump (type 505), as fan coil  or you have any other idea about this problem ?
>>
>>
>>
>> My Regards
>>
>>  George Fragogiannis
>>
>> National Technical University of Athens
>>
>> School of Mining and Metallurgical Engineering
>>
>> ________________________________
>> _______________________________________________
>> TRNSYS-users mailing list
>> TRNSYS-users at cae.wisc.edu
>> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>>
>>
>> --
>> ***********************************************************************
>> Thermal Energy System Specialists (TESS), LLC
>> David BRADLEY                      22 N. Carroll Street - Suite 370
>> Partner                            Madison, WI 53703
>>                                    USA
>> P: +1.608.274.2577
>> F: +1.608.278.1475
>> E-mail: bradley at tess-inc.com
>> Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com
>>
>> ***********************************************************************
>>
>> _______________________________________________
>> TRNSYS-users mailing list
>> TRNSYS-users at cae.wisc.edu
>> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>>
>
>
>
> ---------- Forwarded message ----------
> From: David Bradley <bradley at tess-inc.com>
> To: "frédéry lavoye" <fredery.lavoye at gmail.com>
> Date: Fri, 20 Mar 2009 11:35:01 -0500
> Subject: Re: [TRNSYS-users] TRNSYS message 14
> Frédéry,
>  the TrnsysConstants file is in the ..\Trnsys16\SourceCode\Kernel directory. The process for recompiling the DLL depends on which compiler you are using. The two most likely are the Compaq Visual Fortran compiler or the Intel Visual Fortran compiler. If you do not have a Fortran compiler then you will need to ask your distributor to create a TRNDll.dll with a higher limit on the number of equations for you.
> Kind regards,
>  David
>
>
> frédéry lavoye wrote:
>
> Dear trnsys users,
> I'm simulating an energetic concept on trnsys simulation studio and i've this error message:
> "TRNSYS message 14; the trnsys processor has reported an error while trying to process EQUATIONS and CONSTANTS in the provided TRNSYS input file. The maximum allowable number of constants + equations has been exceeded. Either reduce the number of equations and constants in the input file or increase the limit on the number of equations and constants. If the limit is to be increased, the variable nMaxEquations should be modified in the TrnsysConstants file. The TRNSYS source code will then have to be re-compiled and a new TRNSYS dynamic link librairy created."
>
> I cannot reduce the number of equations and constants otherwise my model is false. How can i re-compiled my TRNSYS source code and is there any risk in doing that ? Furthermore, where can i find the Trnsysconstants file ?
> Thanks for your answer.
> Best Regards.
> Frédéry.
>
> 2009/3/19 <trnsys-users-request at cae.wisc.edu>
>>
>> Send TRNSYS-users mailing list submissions to
>>        trnsys-users at cae.wisc.edu
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>> or, via email, send a message with subject or body 'help' to
>>        trnsys-users-request at cae.wisc.edu
>>
>> You can reach the person managing the list at
>>        trnsys-users-owner at cae.wisc.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of TRNSYS-users digest..."
>>
>> Today's Topics:
>>
>>   1. Runtime error using Type155 Matlab Calling (Giacomo Barale)
>>   2. Re: (no subject) (David Bradley)
>>
>>
>> ---------- Message transféré ----------
>> From: "Giacomo Barale" <stage02 at ferasrl.it>
>> To: <trnsys-users at cae.wisc.edu>
>> Date: Thu, 19 Mar 2009 10:34:41 +0100
>> Subject: [TRNSYS-users] Runtime error using Type155 Matlab Calling
>> Dear all,
>>
>> I wrote some some small programs in matlab using .m files. I then coupled these .m files with Trnsys16 Studio using the type155 component. They work fine individually, but when i try to make them comunicate, linking outputs from one of them to inputs of another one, i receive this error message:
>>
>> "Runtime error!
>>
>> Program: C:\Program Files\Trnsys16\Exe\TRNExe.exe
>>
>> This application has requested the Runtime to terminate it in an unusual way."
>>
>> On the other end, liniking the Type155 with a different component, as the weather data reading and processing Type109, doesn't give me the same problem.
>>
>>
>>
>> Can anyone help me to solve this problem?
>>
>> Thank a lot in advance
>> Best regards
>>
>> Giacomo
>>
>> ---------- Message transféré ----------
>> From: David Bradley <bradley at tess-inc.com>
>> To: Giorgos Fragogiannis <gfrago at metal.ntua.gr>
>> Date: Thu, 19 Mar 2009 11:20:21 -0500
>> Subject: Re: [TRNSYS-users] (no subject)
>> Giorgos,
>>   I would stay with Type753 (heating coil) and Type508 (cooling coil) if indeed that is how the building is being heated and cooled. I am not sure how you are controlling the system but I would recommend putting the zones into temperature level control and adding a thermostat that turns on and off the flow to each coil depending on the temperature of the zone (instead of calculating a zone load and then somehow imposing that on the coils. You may also need to use some diverting valves (Type11) to control whether the water from your heat pump is going to the heating or the cooling coil.
>> Kind regards,
>>  David
>>
>>
>> Giorgos Fragogiannis wrote:
>>
>> Dear all
>>
>> I am new user in trnsys and I try to simulate o ground source heat pump system connected to o 7 zone building (type 56), in order to study the interrelation between  ground, HP (water to water), fan coil and building.
>>
>> My question is what type of fan coil I must used in order to meet  the  heating and cooling demand?
>>
>> Until now I tried  to solve this problem by using type 753 and 508 simultaneously, but it is difficult to controlled it!
>>
>>
>>
>> Is the right way to use of water to air heat pump (type 505), as fan coil  or you have any other idea about this problem ?
>>
>>
>>
>> My Regards
>>
>>  George Fragogiannis
>>
>> National Technical University of Athens
>>
>> School of Mining and Metallurgical Engineering
>>
>> ________________________________
>> _______________________________________________
>> TRNSYS-users mailing list
>> TRNSYS-users at cae.wisc.edu
>> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>>
>>
>> --
>> ***********************************************************************
>> Thermal Energy System Specialists (TESS), LLC
>> David BRADLEY                      22 N. Carroll Street - Suite 370
>> Partner                            Madison, WI 53703
>>                                    USA
>> P: +1.608.274.2577
>> F: +1.608.278.1475
>> E-mail: bradley at tess-inc.com
>> Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com
>>
>> ***********************************************************************
>>
>> _______________________________________________
>> TRNSYS-users mailing list
>> TRNSYS-users at cae.wisc.edu
>> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>>
>
> ________________________________
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>
>
> --
> ***********************************************************************
> Thermal Energy System Specialists (TESS), LLC
> David BRADLEY                      22 N. Carroll Street - Suite 370
> Partner                            Madison, WI 53703
>                                    USA
> P: +1.608.274.2577
> F: +1.608.278.1475
> E-mail: bradley at tess-inc.com
> Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com
>
> ***********************************************************************
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>
>




More information about the TRNSYS-users mailing list