LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read data

 Hi,
      I have large amount of data in a text file (Giga Bytes), How to read those data in Labview and display in a Graph with more seed and should occupy less memory.
 
       I can read datas by chunks but even though i am not getting.
 
 
0 Kudos
Message 1 of 17
(3,584 Views)

What's the general format of the file?

For example, is it basically just a lot of values you want to plot on the Y axis, or is it a file of comma seperated values containing both X and Y data?

 

0 Kudos
Message 2 of 17
(3,578 Views)
 
0 Kudos
Message 3 of 17
(3,566 Views)
 
0 Kudos
Message 4 of 17
(3,566 Views)
Oh. I see two blank responses.
0 Kudos
Message 5 of 17
(3,566 Views)
 The file i have to read has both X and Y datas .I am attaching a small file along with this pls refer
0 Kudos
Message 6 of 17
(3,564 Views)
        Pls reply me as soon as possible
0 Kudos
Message 7 of 17
(3,559 Views)
      I have to read only datas of 0 column in x-axis and 1st column data in y-axis
0 Kudos
Message 8 of 17
(3,558 Views)

You're not going to like this.

 

I'm pretty sure the only way to do this is to parse the file manually. You will have to read it one line at a time and identify and discard the header information. Then, once you get to the real data, extracting the data values is a matter of parsing the string, looking for the spaces. This is actually the easy bit.

 

That should get you the raw data out as a 2D array which you can wire directly into a graph control.

 

 

0 Kudos
Message 9 of 17
(3,550 Views)
 
Here's how I read your sample data. The output is a 2D array which you should be able to wire into a graph control.
 
Once you get past the headers is the data continuous, or are there headers throughout the data (such as those which might be at the top of each page of a printout)?
 
If the headers are interspersed througout the file, you will have to modify the part of the code which igniores them in order to accommodate this.
 
Hope this helps.
0 Kudos
Message 10 of 17
(3,548 Views)