ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Formula Parsing

I am attempting to read formula strings from an array of clusters.  No problem, works great. Now I want to evalute the string formulas to determine if the values are greater or less than what is specified in the formula ( BatteryVoltage < 5.0 ).  The current string to formula evaluate funtions do not handle "<>&|" operators.  Any ideas that won't cost an arm and a leg???

 

Larry

0 Kudos
Message 1 of 4
(6,603 Views)

Hi lcarner

 

One thing you can try is evaluating those values using the <>& nodes in LabVIEW. You can take the output values of the Formula Parsing VIs and evaluate them using the native LabVIEW comparison nodes.

 

Regards

Chris S.
0 Kudos
Message 2 of 4
(6,573 Views)

I use the open source library muParser (http://muparser.beltoforion.de/) to evaluate mathematical expressions in my project Open Dyno www.opendyno.com.

0 Kudos
Message 3 of 4
(6,561 Views)

A new LabVIEW API for muParser is available on LAVA: https://lavag.org/files/file/295-lv-muparser/

0 Kudos
Message 4 of 4
(3,492 Views)