ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Is Mathscript replacing Matlab script nodes?

With the addition of Mathscript to LabVIEW, will the support for communicating effectively with the Matlab script server via Matlab script nodes die out?  I hope not.  Even with Matlab support in previous LabVIEW versions, things have always been a little buggy with each new upgrade to LabVIEW and Matlab - I was kind of hoping that these issues would be resolved with version 8, not ignored and replaced with a math scripting substitute.  While Mathscript looks "handy" for some math tasks, I doubt it can replace the years worth of work users have put into developing detailed and large Matlab programs that can be called easily from LabVIEW.

I like to develop and debug my math programs within Matlab and then just use a Matlab script node in Labview with a single line in it, such as "myMatlabCode" where this is just an m-file in the Matlab path.  This takes up minimal space in my block diagram and gives me ultimately flexibility since this m-file may call several functions and other scripts within Matlab.  It gives me access to more lengthy and complicated Matlab programs that I wouldn't want to attempt to write out and debug in a new Mathscript node.

Of course, I  am just conjecturing based on the demos and tutorials on this new Mathscript feature (I am still using LV 7).  I still have to download the trial and play with it.  But, it's hard to imagine it will be a replacement for my Matlab programs, which call several built-in and custom functions from various Matlab toolboxes.

Anyhow, I like using LabVIEW to develop user interfaces and to gather data from hardware, but then it makes more sense for me to send that data to Matlab for processing.  I can see how the Mathscript node will be helpful for quick math tasks, but it doesn't appear to be a complete Matlab replacement for larger tasks.

-Michelle
0 Kudos
Message 1 of 2
(10,272 Views)
We are not currently planning to let our LabVIEW support for MATLAB® script nodes die out. In fact, with the LabVIEW 8 release it has been improved in order to make it more robust.

We hope that you find the new LabVIEW 8 MathScript functionality more than just "handy" for your math tasks. MathScript has a lot to offer:
  • Extensive functionality with over 500 built-in functions for math, signal processing and analysis
  • Generally compatible with m-file script syntax that is widely used by alternative technical computing software such as The MathWorks, Inc. MATLAB software, Comsol, Inc. COMSOL ScriptTM software and others.
  • Both interactive and programmatic interfaces. The interactive environment is through a LabVIEW 8 MathScript Window that offers a command-line interface with a tabular / graphical display that can show variable contents, graphs and a command history. The MathScript Programmatic interface allows you to deploy m-file scripts in a text node that you can use with your LabVIEW graphical code.
LabVIEW 8 MathScript is a powerful tool now that will only get better with future releases (see http://www.ni.com/mathscript for more information).

Why not try out your m-file scripts with it? MathScript functionality is available with the Evaluation edition of LabVIEW 8 and we'll soon have the online evaluation edition available at http://www.ni.com/trylabview.

MATLAB® is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners.
Sam Shearman
Message 2 of 2
(10,216 Views)