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: 

How to evaluate Expression??

Is it possible to change the expression in “Expression Node” in run-time?

For example: User enters the expression as a string. I need to evaluate it and give the result.

Is it possible to do that?
Any ideas how to sole this problem??
0 Kudos
Message 1 of 3
(3,909 Views)
The expression in a formula node cannot be changed at run-time. Instead, use Eval Formula Node (Analyze>Mathematics>Formula palette) or the Advanced Formula Parsing functions on the sub-palette under there. These functions are not in the LabVIEW base package.
Message 2 of 3
(3,903 Views)
Many thanks.... It is exactly what I was looking for.
0 Kudos
Message 3 of 3
(3,897 Views)