07-27-2019 08:03 AM
I have checked but I can't find spaces but I noticed that the first string corresponding to the number 1 is not read.
07-27-2019 05:22 PM
Because you posted the actual VI, I could see the problem was with the case that was not visible in your picture.
In your other case you gave it a value of 1. It should be -1.
The first case could be just Default rather than "0, Default".
If you do a less than zero comparison, you can turn that case structure into True and False since it will be a Boolean value coming out of the comparison.
07-28-2019 02:11 AM
I had made that mistake. Now it works well. Thanks for everything
07-28-2019 03:48 PM
Of course if the arrays are very big, the current solution becomes very inefficient.
Better solutions could be implemented by e.g. sorting the two input arrays and adjusting the search start index as you go along. Of course variant attributes come to mind too (and if you would upgrade to LabVIEW 2019, a solution based on a "set" would work great ;))