05-02-2005 11:15 AM
05-02-2005 11:25 AM

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.05-13-2005 02:58 PM
@Ed Dickens wrote:
The "Search 1D Array" function will only return the index of the first instance of the search item.
If you want to find all matching indexes, place the search function in a loop and pass the "Index of Element" terminal through a shift register to the next iteration of the loop and connect it to the "Start Index" terminal, but increment it by 1. This will search the rest of the array.
Take all the indexes of mathing elements and build into an array and pass that out of the loop.
The attached example shows this.
Ed
05-13-2005 03:06 PM
Ed,
I finally got to a PC with LV 7.1. I'm using LV 5.1 and I don't believe I can use the "stop if" option in the while loop. I tried the "continue looping" option with >= 0 as the condition. It works except I also get -1 as the last match. Do you know how I could execution of the last iteration or would I just have to ignore the -1 entry in the matrix?
Thank,
Jeff
05-13-2005 03:15 PM
01-18-2006 02:05 PM
01-18-2006 02:23 PM - edited 01-18-2006 02:23 PM