LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabView Use MATLAB Toolboxes?

Solved!
Go to solution

Hey Guys

 

I was wondering if anyone could answer a few questions about embedding MATLAB in the LabView envirment. I know that it’s a fairly simple process but I was wondering to what extent you can use M code. I remember someone telling me that LabView used boot MATLAB for the execution of M files but now it can execute them without having to rum MATLB. My specific question is do you have access to all the toolboxes in MATLAB (i.e. Image processing toolbox and the symbolic mathmatics tollbox). Any information would be greatly apreciated.

 

Thanks for the help,

 

Tom   

0 Kudos
Message 1 of 4
(3,617 Views)
Solution
Accepted by topic author Tom Drew

What they were referring to was MathScript, which is a language that's similar to Matlab, but it is not Matlab. NI created it as an alternative to MathScript. It cannot use Matlab toolboxes since it's not Matlab. It has its own syntax and its own set of functions, though these are very similar to Matlab.

 

The Matlab Script Node still exists for calling Matlab code. This, however, requires that Matlab be installed on the machine. 

Message 2 of 4
(3,604 Views)

Thanks for the info this solves the queston for me.

 

Kind Regards, 

 

Tom

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

In the same context, I want to ask how can I access my predictor model (.mat file) generated using Classification Learner Toolbox in LabVIEW's 'MATLAB Script'. Whenever I tries to run my .m file consisting the code, every other line runs fine with the exception of one using the model. The following error is being prompted:

Error 1050 occurred at LabVIEW: Error occurred while executing script. Error message from server: ??? Undefined function handle.

Error in BESTftr_REALTIME (line 52)
yfit = PREDICTIONmdl.trainedClassifier1.predictFcn(Test_all);% Result OUTPUT

. in test2.vi

Please guide me how to rectify it.

0 Kudos
Message 4 of 4
(2,573 Views)