LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
elset191

Or (and And) Array Elements should work on numeric arrays

Status: New

When you or two numeric numbers it does a bitwise or.  The same should happen when using Or Array Elements, but it is not supported for numeric arrays. I see no reason why it shouldn't work just the same?

 

test.PNG

--
Tim Elsey
Certified LabVIEW Architect
3 Comments
gb119
Member

I think the operation should be something like this:

or-array elements.png

--
Gavin Burnell
Condensed Matter Physics Group, University of Leeds, UK
http://www.stoner.leeds.ac.uk/
wiebe@CARYA
Knight of NI

This does the same:
Or array elements.jpg

Just for the record, this thread: "XOR Array elements" is related, and suggests this post as a better solution. It would be great to have both: XOR Array elements, and have all boolean array operations adapt to numeric arrays as well.

 

Xor Array should do:

 

Xor array elements.jpg

Only problem is creating a symbol, since propositional login has no universial exclusive disjunctive symbol. This would work:.

 

 

 

crossrulz
Knight of NI

I just ran into a perfect place for this enhancement: Combining Option Flags into a Single Option Value for Open VI Reference.  Related idea to this situation: Replace Numeric "options" with Ring on "Open VI Reference" 


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