Hello,
It is possible to do what you wish. Simply wire your string to an input variable of the MathScript node. You can then pass this string to the eval function. It will perform a run-time evaluation of the script. However, if you wish to have any outputs from the MathScript node, you must add those when creating the node. For example, if you create an output variable called "a," you'll need to make sure your script always creates an "a" variable or an error will occur when trying to read "a."
Note, however, that this is a very inefficient way to run MathScript. Since we are unable to work with the script until run-time, we have to perform code generation at that time. Also, since the script could possibly change with each execution, we need to generate code every time. With code typed directly in the node, it is compiled once and then simply run each successive time.
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments