ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab node

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

0 Kudos
Message 1 of 4
(3,515 Views)

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. 

Shazil M.
CLAD
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 4
(3,475 Views)

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

Download All
0 Kudos
Message 3 of 4
(3,405 Views)

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!

0 Kudos
Message 4 of 4
(3,373 Views)