LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
FermWorks

Implement conditional logic in Parse & Eval Formula Node VIs

Status: New

I wish the Formula VIs supported conditional logic.

 

More broadly, make the Formula Node and the Formula Parse and Eval VIs have the same syntax and capability.

 

from LV help:

Differences between the Parser in the Mathematics VIs and the Formula Node
The parser in the Mathematics VIs supports all elements that Formula Nodes support with the following exceptions:

Variables—Only a, a0, ..., a9, ... z, z0, ..., z9, are valid.
Logical, conditional, inequality, equality—?:,, &&, !=, ==, <, >, <=, and >= are not valid.
Functions—atan2, max, min, mod, pow, rem, and sizeOfDim are not valid. You can use these functions in a Formula Node or use their corresponding LabVIEW functions.

 

11 Comments
Porter
Member

If anyone is still interested, an open source solution is now available over on LAVAG: muParser Expression Parser API

 

It is a LabVIEW API for the open source math expression parser called muParser (http://beltoforion.de/article.php?a=muparser).

 

Out of the box it supports conditional logic. Unlike GPower's library, muParser supports only the double data type. Conditional logic operations return 0 or 1, not true/false.