<html>
<body>
Dear Leen,<br>
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.<br>
Kind regards,<br>
David<br><br>
At 03:48 AM 12/17/2004, Leen Peeters wrote:<br>
<blockquote type=cite class=cite cite=""><font face="arial" size=2>Dear
all,<br>
</font> <br>
<br>
<font face="arial" size=2>I want to upgrade a TRNSYS15 type with an
S-array to a TRNSYS16-type.<br>
I get an error:<br>
</font> <br>
<font face="arial" size=2><i>C:\gebruikers\EL2EP_types\Type183.for(162) :
Error: This name has not been declared as an array or a
function. [S]<br>
S(IST)= Tr0<br>
--------^<br>
C:\gebruikers\EL2EP_types\Type183.for(316) : Error: This name has already
been used as an external function name. [S]<br>
S(IST) = Trn1<br>
------^<br>
C:\gebruikers\EL2EP_types\Type183.for(316) : Error: This function, which
is specified as the left side of an assignment statement, is
invalid. [S]<br>
S(IST) = Trn1<br>
------^<br>
C:\gebruikers\EL2EP_types\Type183.for(317) : Error: This name has already
been used as an external function name. [S]<br>
S(IST+1) = Trn<br>
------^<br>
C:\gebruikers\EL2EP_types\Type183.for(317) : Error: This function, which
is specified as the left side of an assignment statement, is
invalid. [S]<br>
S(IST+1) = Trn<br>
------^<br>
Error executing df.exe.<br>
</i></font> <br>
<br>
<font face="arial" size=2>I suppose I should ad something so the
S-array will be recognized, I simply dont't find what.<br>
</font> <br>
<br>
<font face="arial" size=2>Kind regards,<br>
Leen<br>
</font> <br>
<br>
</blockquote>
<x-sigsep><p></x-sigsep>
****************************************************************************************<br>
Thermal Energy System Specialists (TESS), LLC <br>
David
BRADLEY
2916 Marketplace Drive - Suite 104 <br>
Partner
Madison, WI 53719 <br>
Phone: (608) 274-2577 USA <br>
Fax: (608) 278-1475 <br>
E-mail: bradley@tess-inc.com <br>
Web Pages:
<a href="http://www.tess-inc.com/" eudora="autourl">http://www.tess-inc.com</a>
and
<a href="http://www.trnsys.com/" eudora="autourl">http://www.trnsys.com<br><br>
</a>"Providing software solutions for today's energy engineering
projects" <br>
****************************************************************************************<br>
</body>
</html>