Calls the MATLAB(R) software to execute scripts. You must have a licensed copy of the MATLAB software version 6.5 or later installed on your computer to use MATLAB script nodes because the script nodes invoke the MATLAB software script server to execute scripts written in the MATLAB language syntax. Because LabVIEW uses ActiveX technology to implement MATLAB script nodes, they are available only on Windows.

Add this node to the block diagram and enter the script. You also can right-click the node border to import text into the node. Right-click the node border to add input and output terminals. Right-click a terminal to set its data type. When you create a script in the MATLAB script node, you must use supported data types.


icon

Inputs/Outputs

  • cerrcodeclst.png error in

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Scripts and Formulas\MATLAB script node - Lorenz Diff Eq.vi
    • labview\examples\Mathematics\Scripts and Formulas\MATLAB script node - Fractal.vi