ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript replace m-file during execution

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

0 Kudos
Message 1 of 4
(3,087 Views)

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.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 4
(3,064 Views)

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

0 Kudos
Message 3 of 4
(3,046 Views)

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)


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(3,032 Views)