LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use a boolean variable in a "Formula node"

I'd like use a led indicator as output in a formula node. Is it possible?
How can i declarate the boolean variable in a formula node?
Thanks.
0 Kudos
Message 1 of 6
(7,053 Views)
Use another representation and convert it back to a boolean. For example:
U8, conversion with Number To Boolean Array and index the first element.
Even values represent false, odd values represent true.

Hope it will help you,
Bram Daams

"ulises" wrote in message
news:ff152451.0110030118.24ed6331@posting.google.com...
> I'd like use a led indicator as output in a formula node. Is it possible?
> How can i declarate the boolean variable in a formula node?
> Thanks.
0 Kudos
Message 2 of 6
(7,053 Views)
You can compare the output of the formular knode with something, i.e. =1 or
=0, to get a boolean.

Niko
0 Kudos
Message 3 of 6
(7,053 Views)
What kind of variables can i declarate in a "formula node"?
Only integer??
Thanks for your help.
0 Kudos
Message 5 of 6
(7,053 Views)
> What kind of variables can i declarate in a "formula node"?
> Only integer??

The formula box variables can be real numerics, integers and
floating point. The formula box isn't intended to be a full
text programming environment, but rather a box for textual
mathematical formulas. Programming in LV is typically
done using icons.

Greg McKaskle
0 Kudos
Message 6 of 6
(7,053 Views)
Output a one or zero and then use the "Not Equal To 0?" function in the Comparison palette. That way a zero will equal false and a one (or any other number) will equal true.

Brian
Message 4 of 6
(7,053 Views)