Member of the basic class.
eval(a)
Executes scripts in a string.
| Name | Description |
| a | Specifies the scripts you want LabVIEW to execute. a is a string. |
If you call this function from a MathScript Node or a user-defined function, a warning glyph appears on the MathScript Node frame. The warning glyph indicates that LabVIEW operates with reduced error checking and slower run-time performance for the MathScript Node. To improve the error checking and optimize the performance of the MathScript Node, remove this function from scripts and user-defined functions. Also, do not change the MathScript search path list at run time. Instead, use the MathScript: Search Paths Options page to configure the default search path list.
This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.
for n = 1:10
str = ['A', int2str(n), '=n'];
eval(str)
end