03-21-2013 10:37 AM
Hi
I have tried to use some custom defined matlab code in labview but I'm not having success. I downloaded the mathscript elements (for now I'm in evaluation mode), insert the math script nod in my project, add all the path I need both in the math script property and in the mathscript window, I check that all the function were supported, so finally I pasted the function that I want to use, insert all the input and output terminal set the name. The node recognized my function by painting it violet and so I think that everything was Ok but when I leave the script window all the code inside became gray I'm unable to set the data type of the output (even if I try to set it manually) and the labview program don't run 😞
anyone know why? Thanks a lot for the help
I have labview 2012 sp1 and matlab 2011b
have a nice day
Amos
03-22-2013
09:00 AM
- last edited on
10-31-2024
11:58 AM
by
Content Cleaner
Hi Amos,
I'm unable to run the example you posted. There is no Matlab Code inside the Mathscript Node. You could try to follow the guide lines in this document.
Hope that this helps you.
Best Regards
Cla_CUP
03-23-2013
11:54 AM
- last edited on
10-31-2024
11:59 AM
by
Content Cleaner
@Cla_Cup wrote:
I'm unable to run the example you posted. There is no Matlab Code inside the Mathscript Node. You could try to follow the guide lines in this document.
The following "code" is in the mathscript window (sorry, I am not familiar with enough with mathscript to understand this ;)):
%questo é la funzione che chiama il simulatore 🙂
[inizO,time,temper,PGV,QGV,Pc,Cr,rv,rai,rpi,ram,rpm,ras,rps,acc,rc,ATP,Ca,NOE,Util1,Util2,Tau]=passa(inizI,timeI,t,emato,PO2,PCO2,Qmed,Freq,Fond,conti,met,mio,ConP,endo,Att,Bsx,Bdx,Qfist,Dfist,Urem,PGVI,QGVI,PcI,rpiI,raiI,rpmI,ramI,rpsI,rasI,rcI,rvI,accI,CrI,ATPI,CaI,NOEI,Util1I,Util2I);