Harper, The recommended method in Trnsys17 is to use the setStaticArrayValue() and getStaticArrayValue() functions. Both are discussed in the 07-Programmer's Guide. If you want to continue with the older method then I would guess that the range check error you are seeing comes from trying to access a spot in the storage array that is beyond the range reserved by the Type. Check to make sure that the setStorageSize() function call is correct. kind regards, David On 06/25/2015 11:52, LUO Xiaojun wrote:
-- *************************** 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 |