LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What happens when you 'or' two arrays?

I'm trying to compare the individual elements of two arrays.  For example, when either arrays' element 0 = true I want a true returned from the 'or' function.  I don't think this is happening though.  Anybody have an idea?
Hell, there are no rules here...we're trying to accomplish something!!! - Thomas Edison
0 Kudos
Message 1 of 4
(2,697 Views)
Hi Grub,
 
You should be able to OR two numeric arrays with no problem.  Now the OR function will return numeric data when comparing numeric arrays, so if you want it to be boolean data, you can simply use the "Not Equal Zero" function to turn it into a boolean array.  I have attached a screenshot of a VI I wrote that does this.
 
Hope this helps,
-D
Message 2 of 4
(2,682 Views)
This should work just fine. Please show your code.
 
 

Message Edited by altenbach on 01-04-2006 12:30 PM

0 Kudos
Message 3 of 4
(2,682 Views)
Thanks for the replies....
 
It looks like it works as I had intended it to...there must be something else going wrong that I haven't found yet.  thanks, this eliminates one possible problem.
 
Grub
Hell, there are no rules here...we're trying to accomplish something!!! - Thomas Edison
0 Kudos
Message 4 of 4
(2,665 Views)