05-27-2012 11:25 PM
Hi guys ,
how can i use an matlab code in labview . i want to inherite the code done in matlab for image processing into labview .
Is mathscript an option ?.if so how to do it .
Solved! Go to Solution.
05-28-2012 12:24 PM
There are two ways to do this:
1) MathScript Node: This is the blue box in LabVIEW. You should be able to copy and paste your .m file into this node and it should just work.
2) MATLAB Script Node: This box (grey) will actually call MATLAB through its ActiveX interface. This does require MATLAB to be installed on the computer you're running your VI on.
05-28-2012 01:11 PM
PackersFan wrote:1) MathScript Node: This is the blue box in LabVIEW. You should be able to copy and paste your .m file into this node and it should just work.
The Mathscript RT module needs to be purchased seperately, so he might not have it.
05-28-2012 11:34 PM
This is the code .m code iam trying to convert into labview .
courtesy: Yue Wu
05-29-2012 07:58 AM
While MathScript and Matlab share many similarities, they are fundamentally different languages, and MathScript doesn't support or have equivalents of a lot of Matlab functions. Also, if you use toolkits, then you won't be able to use them in MathScript. In one of your .m files I spotted the Heaviside function, which comes from the Symbolic Math Toolbox. MathScript doesn't have this.
As for the code, I'm not sure what you want us to tell you about it. We certainly can't convert the code for you (unless you're willing to hire someone).
05-29-2012 08:40 AM
hi smercurio_fc ,
Thanks for the reply . i was trying the whole code in matscript .i was not able to execute it as i had broken arrow . Thats y i posted the code.
Thanks