LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab script node - Accept changings in m file without being constrained to restart the LabView program

I use the Matlab sript node and load a m file. When I am changing the m file while the vi is running the chances won`t be assumed. So I have to close the vi and restart it again. Now the changed m file is accepted.
Is there a way to assume the chances in the m file while running the vi or without restarting the whole program (maybe it will be enough to stop the program?)?
0 Kudos
Message 1 of 2
(2,770 Views)
Hi

if it would be possible to dynamically change the Matlab script during duration
LabVIEW had to compile the code on the fly. But this is impossible. The code must
be compiled before you start execution.

What you can do is on the one hand to dynamically load several VIs which includes
different MathScript Nodes or on the other hand to program something like a case in
your Matlab code to run different code depending on a variable.
 
Hope this helps you

Best regards

Lars
0 Kudos
Message 2 of 2
(2,735 Views)