LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluating an arbitrary length boolean logic expression

Is it possible to have labview evaluate a boolean expression of arbitrary length and complexity, which would be input by the user. Storage format of the expression isn't necessarily important. Use of the attached vi might provide some help for evaluating the expressions.
0 Kudos
Message 1 of 5
(2,664 Views)
There are a couple of ways to go about this. You may want to look into the Mathmatics&#0187Formula&#0187Advanced Formula Parsing pallet for some useful VIs.

One way to do it would be to parse a string for expresions and perform the oppertation specified. Attached is a first step in doing this. Note that it returns an array of results...the code for anding and oring still needs to be added.

Hope this helps,
Amaury Rolin
NI Applications Engineer
Message 2 of 5
(2,664 Views)
Could someone please save the vis in this library as version 6i for me? Much Thanks.
0 Kudos
Message 3 of 5
(2,664 Views)
This any better?
0 Kudos
Message 4 of 5
(2,664 Views)
Yes, thanks.
0 Kudos
Message 5 of 5
(2,664 Views)