LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

comparing two arrays with same length

I have two arrays coming out of the For Loop, which one of each is connected to one of the Index Arrays. I connected two Indexes together to the counter of the For Loop covering the entire of my circuit. At the output of the Index Arrays I compare if they the same, store one in the new array array; otherwise, store two after the previous one. The problems is when the first loop executed, It gave me the right values, and the second iteration, and so on, the output of Index Arrays are always zeros. Thefore, my outputs after that are all zeros. I am wondering if anyone can help me out with this. I am a beginner.
Thank you very much.

Regards,

Sonny
0 Kudos
Message 1 of 2
(2,658 Views)
Hi Sonny;

I may need further description of your problem. Anyway, I want to mention a tip that may help you in achieving what you want.

If your arrays have the same dimensions, you can compare them right away using the "Equal?" vi. This vi will return an arrays of bools indicating which elements are equal (true) and different (false).

We will be glad to help you with your situation. It would be beneficial if you can provide an example of your problematic vi attached to a message.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 2
(2,658 Views)