04-27-2006 12:30 PM
04-27-2006 03:01 PM
Phil,
I would first create a VI that finds the index of the pattern you are searching for. Then using this index, you can use the array subset VI to get the data after that position.
There are a coupld of ways to find the pattern in the array. An easy way is to use a while loop and for each iteration get a subset of your data array where index = iteration and length = pattern match length. Then just compare the two arrays and stop parsing on the first match. This could require alot of memory allocations, and therefore would be slow. Alternatively, you could parse earch element of the data array and try to match it to the first element of your search pattern. When a match is found then you try to match the remaining search elements. I've included a VI that shows how I implemented this.
-Jared
04-27-2006 04:02 PM
04-27-2006 09:30 PM