Call MATLAB Function Node not Running the Latest Script

Updated Dec 28, 2023

Reported In

Programming Language

  • LabVIEW

Issue Details

LabVIEW 2021 and beyond comes with Call MATLAB Function node. I found that after Call MATLAB Function node executes the script for once, on upcoming execution, the result of the execution is not updated as how the script has been modified. All upcoming execution will be based on the logic of the unmodified script. How should I resolve this?

Solution

This is expected behavior. After the first execution of the Call MATLAB Function node, a MATLAB background process instance will be created. It can be found in Task Manager as shown in the image below. 
image.png

After you select the MATLAB background process instance and end it, your upcoming execution of Call MATLAB Function node will be based on your latest MATLAB script.