LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically loading the MathScript Node

Hi - Is it possible to dynamically load script into the Mathscript Node at Run time. I see that you can use define functions and paths and things . But being a newbie to Mathscript could all this hang together to make dynamic loading a possibility and how?
 
thanks dht 
0 Kudos
Message 1 of 2
(2,545 Views)
Hi,
  unfortunately the node doesn't support run-time dynamic loading of scripts. You can load variable values with the load function, but not scripts.
 
Depending on your application, you could use a case statement to decide between several pre-built (and possibly compiled) mathscript nodes, and acheive the functionality that way.
 
Another option might be to use the formula vi's instead, although this will require a more complex architecture to parse the text file you'd generate.
 
Hope that helps
 
Sacha Emery
National Instruments (UK)
 
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 2
(2,529 Views)