To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to parse a string of formulas and calculates the variable values.
Description
This example shows how to evaluate equations using Parse Formula Node.vi (Mathematics>>Scripts & Formulas>>Formula Parsing) and Eval Parsed Formula Node.vi (Mathematics>>Scripts & Formulas>>1D & 2D Evaluation). This is similar to the Formula Node but with variables and formulas that can be entered on the front panel.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.