05-19-2022 09:59 AM
Hi everyone,
i'm trying to integrate a MatLab script into my VI. I installed the MathScript Module. The MatLab Script is used in a Sub VI. Everything is working fine. But when i tried to add the VI to my Project, where I'm using a cRIO-9056 for my measurements, the VI is not running and i get the following error: "Script Node: Node not supported in the current target". Am I missing some software on my cRIO-device or why isn't it working? Anybody got some idea?
Thanks and kind regards
Marius
05-19-2022 10:39 AM
As the error states, MathScript node is not supported on cRIO.
MathScript node runs only on Windows host side and cannot be compiled to run on a cRIO as the necessary MATLAB support dependencies are host only.
05-19-2022 11:45 AM - edited 05-19-2022 11:47 AM
@santo_13 wrote:
MathScript node runs only on Windows host side and cannot be compiled to run on a cRIO as the necessary MATLAB support dependencies are host only.
Don't confuse MathScript RT (By NI) with the Matlab script node.
Mathscript (A script parser implemented under the hood in LabVIEW that understands Matlab-like syntax) actually works on RT but is no longer recommended for new designs.
See also: Moving to MATLAB Script Nodes from MathScript Nodes in LabVIEW
05-19-2022 10:34 PM
@altenbach wrote:
@santo_13 wrote:
MathScript node runs only on Windows host side and cannot be compiled to run on a cRIO as the necessary MATLAB support dependencies are host only.
Don't confuse MathScript RT (By NI) with the Matlab script node.
Mathscript (A script parser implemented under the hood in LabVIEW that understands Matlab-like syntax) actually works on RT but is no longer recommended for new designs.
See also: Moving to MATLAB Script Nodes from MathScript Nodes in LabVIEW
Thanks for clarifying @altenbach, I didn't realize that these were two different nodes.