From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(5,518 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
(5,488 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
(5,476 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
(2,407 Views)