LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read/Write From/To Binary/Text File

Thanks Thoric

0 Kudos
Message 11 of 17
(642 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 12 of 17
(630 Views)

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.

0 Kudos
Message 13 of 17
(622 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 14 of 17
(619 Views)

Thanks again to all for the input!

0 Kudos
Message 15 of 17
(616 Views)

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

0 Kudos
Message 16 of 17
(609 Views)

Thanks Adam

0 Kudos
Message 17 of 17
(604 Views)