LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search a 2D array for different pattern of occurence

Hi,
 
I have a Target hardware(ECU) which generates a Seed value ,whenever a particular request is sent.I need to check for different pattern of seed occurencs by transmitting this request several times.Presently I transmit this request 1000 times and log the seed values(8 bytes) obtained onto a file(of 2d array format) as and when i recieve it.From this data array(say size 1000 X 8),i need to retrive
 
1.no.of times a seed has occured 1 time
2.no.of times a seed has occured 2 times or more
3. No .of times 3 consective seed pattern received
 
I hope someone would have tried out this similar kind of scenario.
 
Thanks  in advance
-Murali
 

 

0 Kudos
Message 1 of 3
(2,740 Views)

I am note sure to understand what is your problem....

You just need to make a loop where you parse all the elements of your 2D array and search for what you want.

It is a simple combination of "index array", "condition" and "counter"

This is not difficult at all.

0 Kudos
Message 2 of 3
(2,721 Views)
Hello Murali,

It does appear that this would just involve an algorithm in which you sort and search your array for these values. If you can logically split this 2D array into 1D arrays, you might want to examine the "Search 1D Array" VI. If you have any difficulty with any component of this process, please post back so we can help. Thanks!

Mike D.
0 Kudos
Message 3 of 3
(2,709 Views)