LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to realize the calculation of string Formula expression

There are functions to implement in LABVIEW, but I didn't find such a function in cvi. 
I would like to ask you how to achieve it.

0 Kudos
Message 1 of 4
(1,186 Views)

There is nothing like a formula parser and evaluator in CVI, the alternatives are to write your own code or to use an external library.

I have never had the need for such a library so I cannot give you a working solution. Nevertheless, a quick Google search resulted in this library that seems promising. I can imagine there are other possibly better alternatives out there.

Or, if you master the language, you could write a DLL in LabVIEW and call it in CVI.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(1,150 Views)

Thank you for your reply. I will try the method you suggested

0 Kudos
Message 3 of 4
(1,135 Views)

I also wrote a solution in pure CVI code, which uses reverse notation and is simple to integrate to a program: https://www.gdargaud.net/Hack/SourceCode.html#PostfixEval

It does doubles and booleans.

Message 4 of 4
(1,103 Views)