11-26-2009 07:53 AM
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
Solved! Go to Solution.
11-26-2009 10:34 AM
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.
11-27-2009 09:58 AM
Thanks for the info this solves the queston for me.
Kind Regards,
Tom
05-10-2019 06:47 AM
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.