03-27-2013 11:01 AM
Thanks Thoric
03-27-2013 11:37 AM
@Mark_Yedinak wrote:
I don't think the formula node will accomplish what the OP wanted. In order to input equations/formulas from an external source at runtime you will need to implement a parser in your code that will evaluate the formula and execute it. Essentially you will be creating a calculator in your code. It is certianly doable but depending on how complex your formulas are it coude be a significant amount of work.
Oh, I thought he meant he already had a bunch of LabVIEW code and he just wanted to condense it into something manageable.
03-27-2013 12:32 PM
Yes i do already have all my subvi created. But may need to be changed in the future so i figure this way would make it easier for updates to the code.
03-27-2013 12:41 PM
As suggested earlier you could use a plugin approach and call the subVIs dynamically. This would require you to develop the LabVIEW code to support the new formulas. If you need your users to be able to add formulas the parser route may be your best option.
03-27-2013 12:47 PM
Thanks again to all for the input!
03-27-2013 04:26 PM
If you opt to go the parser route, there is an example of one in the CLD-R sample exam A, #22.
https://lumen.ni.com/nicif/us/custedcldrexamprep/content.xhtml
Adam
03-27-2013 04:59 PM
Thanks Adam