LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview and Matlab using Mathscript RT module

I have a matlab function that uses simulink and I'm using the mathscript RT module script to make a matlab type script that then calls on my matlab function. My function I created in matlab is supposed to give me 4 outputs. 2 of them are arrarys, the other 2 are integer values. But I keep getting the "Error 1050 occured at labiview". I want my labview to except those outputs from my function, but for some reason I can't get it to work. Everytime I run the vi with the mathscript it gives me all the proper simulations and plots I need, but for some reason I can't get it to fetch, or grab those inputs from my matlab function. Anyone have any ideas?

0 Kudos
Message 1 of 2
(2,276 Views)

Looks like this is a duplicate of your other post: http://forums.ni.com/t5/LabVIEW/Labview-and-Matlab-inferfacing-with-each-other/m-p/2597209#M780541 

 

I think you'll want to be using the Matlab® Script Node, as it actually uses ActiveX calls to run the script in the Matlab® Run time engine. 

The Mathscript RT node actually converts all of your m script into LabVIEW code and runs it solely in LabVIEW. I don't think your S function is going to be supported. 

Here's a list of what is supported: http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmath/msfunc_classes/

 

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

Applications Engineer
National Instruments
CLD Certified
0 Kudos
Message 2 of 2
(2,251 Views)