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

Re: [TRNSYS-users] Strange error when connecting to output device



Chun Kwong,
 Its hard to know the problem without looking at the source code of your Type245. However, I would guess that the problem lies in one of the following three places:

1. INFO(6) might not have been set properly or the call . INFO(6) should be set to the total number of outputs that your model produces.

2. After setting INFO(6), your Type should call TYPECK with the first argument set to 1: CALL TYPECK(1,INFO,...)

3. the RCHECK subroutine may not be getting called correctly. You should have a statement like the following:

DATA OCHECK/'TE1','MF1','PW1','PW1','PW1'/

in which there are as many arguments (three digit codes in single quotes separated by commas) as there are outputs. The three digit codes correspond to the units of your outputs. TE1 means temperature in degrees C, MF1 means mass flow rate in kg/h. If you are interpolating generic data, you can use 'DM1' indicating that the output is dimensionless.

after the data statement you should have a line like:

CALL RCHECK(INFO,YCHECK,OCHECK)

Best,
 David
 



a8304506@graduate.hku.hk wrote:
Hello.

When I try to test a multi-dimensional linear interpolator (Type245) written by
myself (see attached file), I get the following error after the first time
step:

"The listed input referenced an output number beyond the allocated outputs for
the connected type.
Unit 3 Type 25 Input 4 Connected to Unit 5 Type 245 Output 1"

The results for the first time step are correct.  However, if I remove the
connection between the interpolator and the online printer, no error is found. 
Can anyone advise what is the cause for the error?  Thank you!

P.S. I also try to use Type581a, but again with error.

Best Regards
LEE, Chun Kwong
Division of Building Science and Technology
City University of Hong Kong

  

_______________________________________________ TRNSYS-users mailing list TRNSYS-users@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@tess-inc.com 
Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com

***********************************************************************