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.
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.
08-10-2012 09:48 AM
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.
Solved! Go to Solution.
08-10-2012 09:52 AM - edited 08-10-2012 09:54 AM
@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
08-10-2012 09:56 AM
The 1D array will only have 2 values.
08-10-2012 09:58 AM
The "Or Array" function works great.
Thanks for the quick response.
08-10-2012 09:58 AM
Yep, the OR Array elements is what you want.
08-10-2012 10:16 AM
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.