LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read data from text file and display on graph

have data saved in a text file (2 columns and 8 milion row) and i want read the data from text file and display on graph.

if it possoble? and how i do ?

0 Kudos
Message 1 of 6
(3,840 Views)

yes its quite possible, go through File I/O Functions and see how the data can be read from text file and frame an array.

Use the Array of data to display on graph.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 6
(3,817 Views)

8 million? damn

0 Kudos
Message 3 of 6
(3,806 Views)

thenq you on comment, i am begginer and how to that?

you have some guide?

0 Kudos
Message 4 of 6
(3,772 Views)

Unless you have a display that is 8 million pixels wide, you won't be able to show all data at once, of course. What is the datatype?

You might need to be careful to not run out of memory. What's the size of the file in MB? Scanning such a large file into an array of DBL at once might be expensive in terms of memory use and CPU.

 

What do the two columns represent?

  • if each row is an x,y pair and the x values are not spaced equally, use an xy graph.
  • If each row is a plot, use a waveform graph.

What have you tried based on the earlier suggestions? Where did you get stuck? Please attach a typical data file (just with much fewer rows!) so we can see what you have. What is the column delimiter? What is the decimal delimiter? What does the data represent?

0 Kudos
Message 5 of 6
(3,740 Views)

To add to the previous comments reading that much data from a text file and format it to be displayed will also take a very long time to process (probably minutes). You have to be very careful that the user interface don't become irresponsive. A binary format would be better suited and do you really need 8 million points?

 

Ben64

0 Kudos
Message 6 of 6
(3,736 Views)