‎01-26-2018 07:35 AM
Is there a way in Labview to take a Boolean algebraic expression and calculate the result without having to graphically draw the diagram using the Boolean palette symbols for logic with interconnecting lines? I.E.> Maybe a formula node or some equivalent that takes an expression like NOT (A AND B) OR C and computes the output?
Solved! Go to Solution.
‎01-26-2018 08:13 AM
‎01-26-2018 08:14 AM
Two questions:
1. Why are you using LabVIEW and don't want to do graphical programming?
2. "i.e. Maybe a formula node". Then why not use a formula node?
‎01-26-2018 11:06 AM - edited ‎01-26-2018 11:07 AM
@id wrote:
Is there a way in Labview to take a Boolean algebraic expression and calculate the result without having to graphically draw the diagram using the Boolean palette symbols for logic with interconnecting lines?
Fortunately, in LabVIEW there is even a way to graphically solve any Boolean expression without having to write any text. 😄 Try it instead!
And no, the formula node will not work with boolean datatypes (green wires). It will do bitwise operations on integers of the same datatype, same as graphical code. Make sure you deal with operation precedence correctly.
You will only be able to do the blue code using a formula node.