Hi Carlos, The setStorageVars problem, too, has been encountered before: http://www.mail-archive.com/trnsys-users@engr.wisc.edu/msg01920.html Basically, my recommendation is not to use
it in C or C++ - it’s a bit like asking where you can get fresh hay for
your car... Werner De :
carlosfloreslenero@gmail.com [mailto:carlosfloreslenero@gmail.com] De la
part de Carlos Flores | DECCW. Sydney, Australia Hey everyone, I have TRNSYS 16 and I am programming a new module using
C++. I've had absolutely all the problems that have
been mentioned in the past with regards to stored variables (such as un-updated
TRNSYS.h file) and I've solved most of them, but I have been unable to solve
one related to pointers.
Does anybody have the answer to one of these two questions? 1) Do you have any example
(*.ccp) of a module programmed in C++ that uses stored variables?
That would probably be easiest way to understand how to insert the
correct inputs in the setStorageVars function, or 2) Do you know how to insert
the 'nitems' and 'stored' array in a way that
the setStorageVars function will understand? The template generated for C++ does not address these issues
and I am unsure how to fix them. Any help would be highly appreciated! Thanks! Carlos Flores Energy Research Program Universidad de Chile |