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

Re: [TRNSYS-users] TYPE 155



Hi Max,

 

Basically, you only need to add a type 155 to your project, and specify the name of the .m file made with MATLAB.

 

The ‘trick’ is that the file has to be specified under ‘special cards’ (not ‘external files’).

 

You also have to set the number of arguments of the MATLAB function (Number of inputs sent to Matlab in trnInputs(1:nI), Parameter 2) and the dimension of the output vector sent back by MATLAB (Number of outputs from Matlab in trnOutputs(1:nO), Parameter 3)

 

There is also an example under

.\Trnsys16\Examples\Calling Matlab

 

Hope this helps,

 

Werner

 


De : Max Werlein [mailto:maxwithhat@hotmail.com]
Envoyé : mardi 6 mai 2008 10:08
À : trnsys-users@engr.wisc.edu
Objet : [TRNSYS-users] TYPE 155

 

Hi everybody,

I am trying to implement a Matlab m-file into TRNSYS and I am looking for a manual to do so. I am using TRNSYS 16.1 and Matlab 7.1 .
I have an easy s function for solving an differential equation and i would like to have TRANSYS call this function and so as to compare the results with a new type I created in TRNSYS solving the same equation.
Maybe someone can explaine me step by step hoe to call an exsisting S funktion in TRNSYS trough TYPE 155. That would be really helpfull.
Thanks in advance

Max

 


Express yourself instantly with MSN Messenger! MSN Messenger





************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************






************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************