07-09-2012 09:13 AM
Hello,
I have several huge files. The problem is when I would like work with them, it's very long.
That's why, I try to search the position in the file. It's a same principe when you search one word in a dictionnary. If you search the word "painter" you known it's after the middle of the dictionnary.
Therefore you go directly in this section.
I would like apply the same idea but instead of a word I'm looking for dates. But it doesn't work.
You can found in attachment my vi.
Thank in advance.
Solved! Go to Solution.
07-09-2012 09:18 AM
I believe your looking is called a binary search. for the principle just type that into google
i have found an example on this site but have not looked into it to see how applicable it is too you tho
http://zone.ni.com/devzone/cda/epd/p/id/220
hope it helps
07-09-2012 09:22 AM
07-09-2012 10:17 AM
Helo Akiel and GerdW,
Thanks for your help.
Akiel a écrit :
I believe your looking is called a binary search. for the principle just type that into google
i have found an example on this site but have not looked into it to see how applicable it is too you tho
http://zone.ni.com/devzone/cda/epd/p/id/220
hope it helps
I have try this solution before but doesn't correspond completely to what I want.
GerdW a écrit :
Hi kourte,
maybe the problem is your mixing of the state enum with some file position numbers in case "1" of your case structures?
I suggest making that enum a typedef!
Oops, I have change one thing before send the file and I don't see it change my enum. But the problem comes not from here.
07-09-2012 11:33 AM
Hi kourte,
"Oops, I have change one thing before send the file and I don't see it change my enum. But the problem comes not from here."
I do believe that's part of the problem when you screw up your state machine like this!
07-09-2012 11:41 AM
Hello GerdW,
yes it's a part of my problem, thanks. I have correct this error but it's around in circles... I get no result
07-09-2012 11:52 AM
07-11-2012 06:52 AM
Hi GerdW,
I have considered your comments but I have no information that appears.
Do you see why?
07-11-2012 02:46 PM
Finaly, I successful to display informations on my array but it don't display the good information...
07-16-2012 06:57 AM
someone has an idea ???????