07-29-2014 12:57 PM
Hi all,
I need to run my labview data through a command created in a matlab program. I know I need to use the mathscript node in labview to acess matlab. The issue is that labview won't recognize the command because it isn't a matlab command, but instead a command defined in a matlab program. Also, labview gives me an error saying not enough memory to complete the operation. Any guidence appreciated.
Thanks
07-30-2014 12:18 PM
Hi Matt,
It's important to clarify that there's a difference between MathScript Node and MATLAB Script Node. The MathScript node (blue border) will execute all of its code in LabVIEW, and will do compile time checking (so you would've seen a broken run arrow). But, the MATLAB Script Node will execute all the commands WITH MATLAB (and doesn't check the syntax of your commands).
So, if you have a user defined command in MATLAB, you would want to use the MATLAB Script Node.
An alternative if you want to use the MathScript Node is to import your m files so that you have everything defined within the LabVIEW environment.
*MATLAB is a registered trademark of The MathWorks, Inc. ® All other trademarks are the property of their respective owners.