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