03-10-2010 10:51 AM
Hi
i am working in a project using basically labview 8.2 and i wrote a program in matlab R2008(m file)and i want to run this file in my labview program; i also load this program into mathscript window but it didn't work because the m file contains many functions; i was wondering if you can please help me in this manner.
looking forward to recieving from you
Solved! Go to Solution.
03-10-2010 11:40 AM
Hi
Does your script written in MATLAB language syntax return any error ?
03-10-2010 12:02 PM - edited 03-10-2010 12:03 PM
what do you mean by "it didn't work because the m file contains many functions"?
try the matlab script node, this block uses the matlab kernel so basicaly everything you type inside this block, it's executed by matlab.
attacked is a program that ends by calling matlab's siso tool.
and works ok.
03-10-2010 01:58 PM
03-11-2010 01:38 AM
Hello
first of all my mfile program works perfectly in matlab; I have attached the m file program.
Looking forward to recieving help from You
03-11-2010 05:32 AM
worked ok, with me... attached image shows your script, copied and pasted into a mathlab formula node, and the program running asking for the xls file.
did you get that far? if you did, send us the xls so we can go on testing more 🙂
Do you not have the mathlab script formula node? should be in Mathematics>>scripts and formula nodes>>mathlab script node.
(if you don't have it please tell me)
03-11-2010 09:02 AM
04-18-2012 01:55 AM
Dear Sir, I am facing some same problem here. But when i run my matlab in labview, it shows Error as attach below. I have follow all the instruction but still cannot run properly. Can anyone guide me in this?
04-18-2012 07:29 AM
@weihoong wrote:
Dear Sir, I am facing some same problem here. But when i run my matlab in labview, it shows Error as attach below. I have follow all the instruction but still cannot run properly. Can anyone guide me in this?
Please do not post your question in more than one place. Thread: http://forums.ni.com/t5/LabVIEW/Error-when-running-matlab-mfile-in-labview-8-2/td-p/1955835