06-10-2015 05:03 PM
I would like to Matlab node in labview to build executable application because I have a matlabe code and I do not want to write it again. I have two question:
1- Is the the stand alone LV application going to work on computers do not have matlab licence?
2-The matlab code calls user defined function from another .m file. How is this going to work in the LV code and in the stand alone application?
Thank for help
06-11-2015 07:09 AM
Hi Hussain111,
As per your questions, this should work as long as the machine you run the executable has a LV Runtime Engine.
The following link tells you how to create these: http://digital.ni.com/public.nsf/allkb/CCB969868C2946608625673E0077D841?OpenDocument
As per the .m files, you can right click on the border of the MathScript node to import this file.
As for how MATLAB® and LabVIEW interact in the case of this node, it is all through ActiveX protocols which you can learn more about here, https://decibel.ni.com/content/docs/DOC-9135
MATLAB® is a registered trademark of The MathWorks, Inc.
06-29-2015 10:04 AM
I saved the function in the same directory of the LV VI but LV still can not call the function. I attatched a snap shoot of the error massage along with the VI
06-30-2015 09:17 AM
Hi,
The following forum may help assist you with this issue: http://forums.ni.com/t5/LabVIEW/Labview-call-second-order-user-defined-m-files-error-1050/td-p/12812...
Best of luck!