LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rise flag TRUE if at least one value in ARRAY is TRUE

I have a BOOLEAN ARRAY out off a FOR LOOP.
I want to turn an INDICATOR LIGHT ON if at least one value in the ARRAY is TRUE.
0 Kudos
Message 1 of 6
(3,494 Views)
Or Array Elements is on the Boolean palette.
Message 2 of 6
(3,494 Views)
On Tue, 12 Feb 2002 09:10:07 -0800 (PST), Dennis Knutson
wrote:

>Or Array Elements is on the Boolean palette.

Oo! That's much better!
0 Kudos
Message 4 of 6
(3,494 Views)
Thanks!
That's what I'm after for.

Felix
0 Kudos
Message 6 of 6
(3,494 Views)
On Tue, 12 Feb 2002 09:00:01 -0800 (PST), fel wrote:

>I have a BOOLEAN ARRAY out off a FOR LOOP.
>I want to turn an INDICATOR LIGHT ON if at least one value in the
>ARRAY is TRUE.

Hi,
This might be a bit round-about, but...

1. Convert the boolean array to a numeric array
(Func>Boolean>Boolean to (0,1,...))

2. Sum the numeric array

3. Test the sum as GT 0

4. Pass the result to the indicator boolean.

Ben
0 Kudos
Message 3 of 6
(3,494 Views)
Thanks Ben,

I've been going in the same direction.

Felix
0 Kudos
Message 5 of 6
(3,494 Views)