From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Values of Boolean Array to dictate output to be Boolean False or Boolean True

Solved!
Go to solution

I have a fairly simple question that I'm having an issue with solving.

 

I am looking to input a Boolean array to a sub-vi that will take that array and dictate a single boolean output to be Boolean False or Boolean True.

 

For instance, the array will be 1D boolean array, with a depth of 2 index values.

 

-If both index values are False then the sub-vi will kick out a False value.

-If both index values are True then the sub-vi will kick out a True value.

-If one index value is True then the sub-vi will kick out a True value.

 

Any ideas?

 

Thanks.

0 Kudos
Message 1 of 6
(2,616 Views)
Solution
Accepted by jonathanupr

@jonathanupr wrote:

-If both index values are False then the sub-vi will kick out a False value.

-If both index values are True then the sub-vi will kick out a True value.

-If one index value is True then the sub-vi will kick out a True value.


That sounds like an OR to me

 


jonathanupr wrote:

For instance, the array will be 1D boolean array, with a depth of 2 index values.


I'm not sure what you mean by this.  How are you choosing the indecies to use?

 

EDIT:  Maybe you need the OR Array Elements


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(2,613 Views)

The 1D array will only have 2 values.

0 Kudos
Message 3 of 6
(2,608 Views)

The "Or Array" function works great.

 

Thanks for the quick response.

0 Kudos
Message 4 of 6
(2,603 Views)

Yep, the OR Array elements is what you want.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(2,602 Views)

Then please mark Crossrulz's post as the solution to your question and not your own message.  First you will need to go to the options menu to the upper right of the message you marked as the solution to Unmark Solution.

0 Kudos
Message 6 of 6
(2,599 Views)