LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any function in CVI which is used to compare two Arrays?

I can use a loop to compare the contents of two arrays. However, available function in CVI is prefered.
 
 
Thanks!
Jacky
0 Kudos
Message 1 of 3
(2,951 Views)
Well, you could use Sub1D to subtract one array from the other: the result will be an array of differences only and you could use MaxMin1D to detect the maximum difference between them. But unless you can conform with this (unique) element, you'll need again to scan the difference array element by element to study the differences...

Message Edited by Roberto Bozzolo on 07-24-2006 08:52 AM



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,943 Views)
If you are comparing integral type arrays (not floating point), then you can also consider using memcmp - this will probably be faster than comparing elements.
0 Kudos
Message 3 of 3
(2,932 Views)