What is the Alternative to Use Mathscript with NI Real Time for LabVIEW 2023 Q3 and Later to Copy Files to A NI Real Time Target?

Updated Nov 25, 2024

Reported In

Software

  • LabVIEW 2023 Q1
  • LabVIEW MathScript Module
  • MATLAB

Operating System

  • LabVIEW Real-Time (NI Linux Real-Time)

Issue Details

I am currently running MATLAB with MathScript on NI Real Time (RT) system and I realize that MathScript will no longer being supported in LabVIEW 2023 or later. Is there any alternative method to copy files to the NI RT target?

Solution

MathScript Nodes have been replaced with the LabVIEW MATLAB Functions. However, these MATLAB functions are not directly supported on Linux RT.

So, there are 2 options to copy files to a RT target:

  1. Your RT code can publish data to a Windows host (via TCP/UDP) and then your Windows host can process the data with MATLAB functions.

  2. This KB explains that if you have existing MATLAB functions, you need to convert these to C/C++ source files, build it into a Shared Object, and then deploy the Shared Object to your RT target.