03-07-2006 02:54 AM - edited 03-07-2006 02:54 AM
Message Edited by jumpordie on 03-07-2006 02:59 AM
Message Edited by jumpordie on 03-07-2006 02:59 AM
03-07-2006 02:59 AM - edited 03-07-2006 02:59 AM
Have a look at the bug.jpg... It's just a simple read-out, isn't it? |
Message Edited by jumpordie on 03-07-2006 03:01 AM
Message Edited by jumpordie on 03-07-2006 03:02 AM
03-07-2006 03:03 AM
03-07-2006 03:58 AM
Hi
I just tested this similar to your description. The reading of the data (using the read xml-file function) did not take a very long time - I got problems when displaying the read data. It did not matter how I wanted to display it, I always had to terminate LV as it did not react anymore.
Of course, using xml involves parsing, which slows down - but I can't imagine that this slowdown is so high (reading and displaying a xml-file with 240000values, as described earlier, took such a long time, that I interrupted it after about 20 minutes).
I wonder what the guys from NI could tell about this.
03-07-2006 06:40 AM
I dont think XML is intended for storage of large amounts of ASCII data since you will need to do huge amounts of parsing on the data and this will slow down and baloon up the memory required to hold such data. It would be more efficient to store the data in a custom tag and keep the data in a more compressed format like:
<data rows = 4 columns = 60000>lots of binary data</data>
I am still making the transformation to XML and dont understand the full scope of how to implement it but I have found similar issues when dealing with large data sets such as the one you described.
Paul
03-07-2006 06:45 AM
I agree with you Paul, that XML is not intended to store that amount.
But still it is strange that it takes more than 20 minutes to process "just" a 11MB file.
Thomas
03-07-2006 06:52 AM
remember that you are parsing the data and then building up a tree structure in memory this structure will have 4 branches and will be 60000 deep, not very efficient method of storing data, a good way to make your browser cry is to open such a file.
Paul
03-08-2006 08:41 AM
Thx everyone for you reply... It's clear now that it's best not to use XML for huge data storage.
But you say that with XML there is built up a tree structure with branches etc...
How this is solved with TXT? Will there be no tree structure used with TXT?
03-08-2006 08:50 AM
03-09-2006 08:33 AM
Thomas,
Thanks for the clarification, I am still teaching myself XML since it is become the de facto standard. I was thinking of the DOM which looks like the data is stored and manipulated in a tree structure, is root with child nodes... but yes it is really just a text file. when it is parsed I thought is is translated into a logical tree structure in memory so that transversal is relatively easy. I assume that when opening the files in a parser can be a slow translation process since it would require much wore processing than a typical serial file. Either way I hope lo learn much more about XML which plays such a small part in the LABVIEW's developers life but has become the backbone of many other new technologies. I must admit that I am still using .ini files and tab delimited data storage but am trying to change this habit towards XML and database storage to conform to what other industries use.
Paul