Hello,
The attached image shows how to use the Matlab script node to send
LabVIEW data to Matlab, run some Matlab code, and get data back.
Whatever Matlab commands you put in the Matlab script node is as if you
were typing it in the Matlab command window, so it is quite
simple. So, if you have a Matlab script you want to run, you
could need to add "cd" commands to change to the appropriate directory.
However, I have had problems when using this, since errors in the
Matlab code are not reported, and go completely un-noticed, which is
very annoying. You even get apparently valid values from the
outputs of the script node, when in reality they are invalid because
there was a run error in the Matlab code.
So, you need to create and COMPLETELY debug your Matlab script in
Matlab, where you are able to see errors, and then start using it from
LabVIEW.
Good luck,
Alejandro