[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] trnsys help



Dear Meenakshi,

First of all, I did not have clear if you are able to run the examples.

- Calling Excel: I guess that the problem is that you did not added the macro required to interpret the information exchange in Excel. Please open the spreadsheet 'Schedule.xls', found in the directory \Examples\Calling Excel. If you open the Visual Basic environment in Excel, you will find a module called 'Modul1', which contains the macro called TRNSYS.

- Calling Matlab: Please take a look at the example 'solarcollector.m' found in the directory '\Examples\Calling Matlab'. The Matlab file is like a regular component written in Fortran, i.e., it contains all the operations during all the TRNSYS calls: at the initialization call, during iterations, etc. At the end of each call, it sends back the results in the array trnOutputs().

Please feel free to send me your project files if you still do not get the simulations to run.
Best regards,

Diego


Meenakshi Sahu wrote:
Hello Sir,
I want to call MATLAB or Excel in TRNSYS. I tried from the examples also but still have some problem. I've attached here simulation for calling MATLAB n calling EXCEL. In 'calling EXCEL' it is giving the message that VBA-macro is not found in my worksheet.However I can access VBAthrough my worksheet. and in MATLAB there is some error i.e. 'ERRORCODE'. i m not understanding how can i introduce MATLAB in TRNSYS.
        Kindly help me.
Thanks in advance.
With warm regards,
Meenakshi.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

------------------------------------------------------------------------

_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@engr.wisc.edu
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users


--

Diego A. Arias
TRNSYS Coordinator
Solar Energy Laboratory
University of Wisconsin - Madison
1500 Engineering Drive
Madison, WI 53706