Note: NI does not recommend LabVIEW MathScript Module functions for new designs. See www.ni.com/migratemathscript for information and recommended alternatives.
The MathScript Node is a structure on the LabVIEW block diagram that gives you the ability to put text-based MathScript code inline with graphical LabVIEW code. You can define inputs and outputs on the node borders to pass data back and forth between the two paradigms. The node even supports debugging, with single steps, breakpoints, syntax highlighting, and a probe for intermittent values.
The MathScript Node implements similar functions to the MathScript Window
but with the additional functionality of a full .m file compiler, making it useful as a textual language for signal processing, analysis, and math. LabVIEW MathScript is generally compatible with .m file script syntax, which is widely used by alternative technical computing software. Users do not need to have access to MATLAB™ to use this structure, but users who have MATLAB .m files or are familiar with its syntax may find the MathScript Node to be of greater benefit.
The use of MathScript Node requires the installation and activation of the MathScript Module. If you are interested in options do not require an additional license and are familiar with C++ syntax, look into using Formula Nodes in LabVIEW
as an alternative.
This tutorial familiarizes users with the MathScript Node, walking through how to add basic code and interface with LabVIEW inputs and outputs. This tutorial assumes that you have basic experience working with LabVIEW.