[TRNSYS-users] S-array

David Bradley bradley at tess-inc.com
Fri Dec 17 06:00:11 PST 2004


Dear Leen,
   It was decided with the development of TRNSYS 16 that the S-array was 
difficult to use and even more difficult to explain to others. I am 
embarrassingly famous for messing it up myself. While the S array still 
exists in TRNSYS 16 for legacy mode components (components that are simple 
"version signed" as TRNSYS 15 components), the recommended procedure is to 
replace your use of the s-array with use of three functions: 
setStorageSize( ), getStorageVars( ), and setStorageVars( ). There is a 
section in the 08-Programmers Guide manual that explains the idea of these 
functions, their syntax, and how to make use of them when converting your 
TRNSYS 15 Type to TRNSYS 16.
Kind regards,
   David

At 03:48 AM 12/17/2004, Leen Peeters wrote:
>Dear all,
>
>
>I want to upgrade a TRNSYS15 type with an S-array to a TRNSYS16-type.
>I get an error:
>
>C:\gebruikers\EL2EP_types\Type183.for(162) : Error: This name has not been 
>declared as an array or a function.   [S]
>         S(IST)= Tr0
>--------^
>C:\gebruikers\EL2EP_types\Type183.for(316) : Error: This name has already 
>been used as an external function name.   [S]
>       S(IST)   = Trn1
>------^
>C:\gebruikers\EL2EP_types\Type183.for(316) : Error: This function, which 
>is specified as the left side of an assignment statement, is invalid.   [S]
>       S(IST)   = Trn1
>------^
>C:\gebruikers\EL2EP_types\Type183.for(317) : Error: This name has already 
>been used as an external function name.   [S]
>       S(IST+1) = Trn
>------^
>C:\gebruikers\EL2EP_types\Type183.for(317) : Error: This function, which 
>is specified as the left side of an assignment statement, is invalid.   [S]
>       S(IST+1) = Trn
>------^
>Error executing df.exe.
>
>
>I suppose  I should ad something so the S-array will be recognized, I 
>simply dont't find what.
>
>
>Kind regards,
>Leen
>
>
>

****************************************************************************************
Thermal Energy System Specialists (TESS), LLC
David BRADLEY                           2916 Marketplace Drive - Suite 104
Partner                                        Madison, WI 53719
Phone: (608) 274-2577 USA
Fax: (608) 278-1475
E-mail: bradley at tess-inc.com
Web Pages:  http://www.tess-inc.com     and      http://www.trnsys.com

"Providing software solutions for today's energy engineering projects"
****************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20041217/d049486b/attachment-0005.htm>


More information about the TRNSYS-users mailing list