[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] TRNSYS-EES. Message 129



Michele,
  Everything that you noted down in your problem description looks correct. You do not need to put all the EES variables into the outputs, only the ones that you want EES to put onto the clipboard and pass back to TRNSYS (so 1 in your case). The Type66 parameter for the number of expected outputs has to match the number of values that EES places on the clipboard of course but it sounds as though you already checked that. One thing that concerns me a bit is the use of the "," as a decimal separator. It is possible that TRNSYS is interpreting a result of 123,45 pasted to the clipboard as two numbers: 123.0 and 45.0.
kind regards,
 David



On 04/19/2016 07:59, Michele Pressiani wrote:

To whom I may concern,

I´m trying to link together TRNSYS 17 (Version 5.4.0.0) with EES (Version 9.920) using Type66a.


The main script in EES is:


$Import 'CLIPBOARD' T_ambient;G

T_amb=T_ambient+273,15 "[K]"
v_wind=3                                 "[m/s]"
k_sub=420                                  "[W/m/K]"
dz_sub=0,1                                "[m]"
T_1=25+273,15                         "[K]"
h=2,8+3*v_wind                          "[W/m2/K]"
h_cond=k_sub/dz_sub          "[W/m2/K]"

h*(T-T_amb)+h_cond*(T-T_1)+G=0

$Export 'CLIPBOARD' T

I set two inputs and one ouput.

For the inputs:

- I used Type 15-6 in order to get the Dry Bulb Temperature (T_ambient) and the Total Horizontal Radiation (G)

For the output:

-I used the online plotter Type 65c in order to visualize T.


In the control cards I set:

-Simuluation start time 12 hr

-Simulation Stop Time 15 hr

-Simulation time step 10 min


When I run the TRNSYS project then I find error related to MESSAGE 129: "The referenced Unit has tried to set an Output value higher than the number of Outputs that the Type reserved for itself."


Then if I check on EES I find:

T_ambient=2,982E+14 

G=3,385E+14 

I have two questions: 
1- Why this values are so high? Am I missing anything?
2- Do I have to put like output from EES all the variables even if I want to see only one of them?
       $Export 'CLIPBOARD' T;T_amb;v_wind;k_sub;dz_sub;T_1;h;h_cond

Would you mind helping me with this problem?
Thanks you so much! 

Regards,
Michele Pressiani





_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

-- 
***************************
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
d.bradley@tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com