NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
murali_vml
Posts: 62
0 Kudos

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
 

 

Member
titi_nicolas
Posts: 64
0 Kudos

Re: Search a 2D array for different pattern of occurence

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.

Active Participant
DuffmanSays
Posts: 214
0 Kudos

Re: Search a 2D array for different pattern of occurence

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.
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page