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

David Bradley bradley at tess-inc.com
Thu Feb 25 21:00:42 PST 2010


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 at 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 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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20100225/8ec3e6d0/attachment-0001.htm>


More information about the TRNSYS-users mailing list