LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate Matlab program into Labview

I have a Matlab program to do some data processing.

 

The data source is from Labview, and the processed data will pass back to Labview for display.

 

Finally the Labview program need to compile into exe program.

 

Any way to make it. Thanks.

0 Kudos
Message 1 of 13
(5,239 Views)
you can use the matlab script node found under mathmatics-->scripts & formulas-->scripts
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 2 of 13
(5,237 Views)
You can use a "math script " node. Explain the functionality and create the whole stuff in lv,
Message 3 of 13
(5,231 Views)

Where is the mathmatics-->, I tried to search through controls but not found.

 

I tried the sample of Matlab script node, but not work, said

Error 1048 occurred at LabVIEW:  LabVIEW failed to get variable from the script server. Server:"" in MATLAB script node - Fractal.vi

 

Any suggestion?

0 Kudos
Message 4 of 13
(5,214 Views)

hope this helps:

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 5 of 13
(5,211 Views)

Hello turbot,

 

This might not be immediate, but if you are building an executable with  mathscript node, do remember to enable the checkbox for "Enable Mathscript Support" in the Application Builder dialog box (Advanced tab).

 

Best regards,

Victor

Message 6 of 13
(5,178 Views)

Hi turbot,

 

If you would like to use the Matlab script node, you should first make sure you have the Matlab software installed on your machine, or you can get an error.

Message 7 of 13
(5,161 Views)
Later if compile the vi into exe, will it still need Matlab installed?
0 Kudos
Message 8 of 13
(5,152 Views)
Yes matlab has to be installed in the target computer.
Message 9 of 13
(5,140 Views)

is there a runtime for matlab? because if there is you may be able to install the runtime on the target machine and it may work.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 10 of 13
(5,133 Views)