LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing Matlab in another PC

Dear All, Dear Labview experts,
 
I am trying to run a Matlab script from Labview.
I am using Labview 7.1, which means I need to have Matlab engine installed in the same system.
However, since we have limited Matlab licenses, we plan to use the existing Matlab which is installed in another PC.
We want to share the Matlab through the network to be used to run the Matlab script in our system with Labview 7.1.
 
Is it possible to do that? (I hope it is... I'm crossing my finger)
If it is, how to set everything in the Labview?
 
Thanks so much in advance.
 
0 Kudos
Message 1 of 4
(7,177 Views)
Hello,

National Instruments does not support this configuration.  One solution is to upgrade to LabVIEW 8.2.  The LabVIEW MathScript Node was introduced in LabVIEW 8.0 and does not require any additional software to execute.  In LabVIEW MathScript, you generally can execute scripts written in the MATLAB® language syntax.  However, the MathScript engine executes the scripts, and the MathScript engine does not support some functions that the MATLAB software supports.

MATLAB® is a registered trademark of The MathWorks, Inc.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 2 of 4
(7,167 Views)
Thanks a lot GrantM... It's very helpful...
Allow me to ask further question:
How about compiling the Matlab script to .dll (using .mcc, for instance), and run it by using 'call library function'?
In this case I won't need to have the Matlab engine installed on the system (however, I still have to spend for buy the mcc toolbox Smiley Mad)
 
Thanks again in advance.
0 Kudos
Message 3 of 4
(7,164 Views)
Hello,

We have not tried this and the Call Library node is slightly outside my area of expertise.  You might have better luck asking in the regular LabVIEW forum as someone else may have tried this.  That being said, as long as the DLL you generate performs as a regular Windows DLL (i.e. you can call it from C code without an issue), you should have no problem with that approach in LabVIEW.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 4 of 4
(7,157 Views)