10-16-2014 05:50 AM
Hi,
I have a problem with the attached code. Search 1d array doesnot findout the index number of an existing element. But, the reverse is working well.That is,it can findout the element corresponding to an index number.I am attaching the vi and the txt file from where I need to read and search.
Please reply...............
Thank you in advance.........................
-Sudipta Sengupta.
Solved! Go to Solution.
10-16-2014 05:56 AM
R-click the Element and Subarray and change to '\' code and you'll see the problem. Your text file has 4 spaces at the end. If you add those to the Element it'll find the elements, so it works as expected.
/Y
10-16-2014 05:58 AM
What you can do it add loop after the Index Array and Loop through the extracted column and Trim Whitespace and those extra spaces will be removed.
That's probably how you want it to work.
/Y
10-16-2014 06:58 AM
Thank you very much...............