07-16-2012 07:08 AM - edited 07-16-2012 07:09 AM
Hi kourte,
your last post only has a big snippet attached with lots of references and property nodes, which makes it hard to analyze your VI.
You also didn't mention your problem: "I successful to display informations on my array but it don't display the good information"
How can I decide what's "good" and what's "bad" information?
07-16-2012 08:47 AM
Hye Gerd,
you can find the folder of this application and an example of the data.
![]()
For me the "good information" it's when the information is displayed in the table is between the two timestamp. And "bad informations" are all those which are not included in.
Thank's.
Kourte
07-17-2012 02:12 AM
Hi kourte;
"I would like apply the same idea but instead of a word I'm looking for dates. But it doesn't work."
A binary search like yours will only work when the data is sorted. And the dates in your DataTest aren't sorted...
Another try to load your file:
This loads your (small) example file. It shows how to convert timestamps from string in a much more easy way than you do. It puts the data into a cluster array. That array is sorted by date. Use this as an example how you could load your files (maybe line by line).
Your VI is just a mess!
- In your "CHECK"-VIs you are loading several lines from the file, I don't know what you why you do this...
- Loading from a file at several places will always increment the filepos index, so you simply created a big messy race condition with all those FileRead calls...
- I don't know why you're using an ElapsedTime VI when you want to check dates from a text file...
07-17-2012 07:22 AM
Hello Gerd,
most of my data files are sorted by date (70% of my files) but not every time.
Generally, my files are more of 70000 rows that why I would like divide the file in 2 or more because when I search in their files it's very long..
I use ElapsedTime because at the time when I try my project, I see a problem with upper greater, upper lower... With elapsed this problem disappear.
Kourte
07-19-2012 01:55 PM
Hello everybody,
It's good I have found the solution.
I have restarted all over from the beginning.
If you are interested,this is a solution.
Thank's for your help.
Bye.
07-19-2012 02:05 PM
Hi kourte,
it's nice to see you finally made it, even with a fresh start...
Remarks:
I would put all those operations, which are the same in all the cases, in subVIs to further clean up the VI. You also have several coercion dots in your VI, it may run "better" when you avoid them.
07-19-2012 02:17 PM
Hello Gerd,
thanks for your differents remarks.
I will try next time to better clean my sub Vi's.
+
07-23-2012 06:56 AM
RE little question,
now I try to convert the 1D array(of the program) to 2D array. Would you have an idea of how to?
Thanks
07-23-2012 07:17 AM
07-23-2012 07:23 AM
Hello Kourte,
For any new question please create a new topic, that will help people looking for the same solution.
Regards,
Mathieu P. | Certified LabVIEW Associate Developer
National Instruments France