03-03-2015 08:28 AM
I want to change mathscript code during my application is running...
Therefore I call an *.m-file in the mathscript node. I can change the search path and so on but I can´t replace an m-file in the memory.
Any ideas??
Thanks!
Christian
03-03-2015 12:52 PM
You can't do that.
You can use a case structure to select a different Matlab Script node but the script the node executes must be known at compile. Not run-time writable.
03-04-2015 12:47 AM
Thanks Jeff!
Sure I can´t change the script itself. But I call an external function in an *.m-file... Is there any chance to change the m-file when labview is started already?
Christian
03-04-2015 09:16 AM
LabVIEW actually calls on the Matlab runtime to execute scripts. A call to a external m file might not break LabVIEW (given the data types of the inputs and outputs don't change)