Discussion:
finding patterns in array data
(too old to reply)
tadk
2006-06-06 23:10:16 UTC
Permalink
I have an array of analog data representing data packet pulse widths of
a signal. I want to search this array to find the packet start which is
a a series of pulses of specific widths. If I simply use the threshold
vi it will sometimes work but it really only compares the difference
between each two samples. At a minimum I would need to specify a
min,max for a series of 3 pulses.
tadk
2006-06-08 02:10:09 UTC
Permalink
Right now I collect an array containing 500 doubles.  The pattern
I am looking in the data begins with 12 consecutive elements with
values of 0.0025 plus or minus 10% followed by a single element with
value 0.005 plus or minus 10%. The elements captured before and after
this pattern could have any values but tend to be in the range 0.0 to
0.020 and are pretty random. As long as I was able to locate at least 3
consecutive values of 0.0025 followed by one value of 0.005 that would
be good enough. If I locate a pattern which matches these constraints,
the test passes.

Loading...