LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert txt file to graph using labview 2011

Solved!
Go to solution

@varsha88 wrote:
The issue is I'm not able to find which block in the .vi file that is performing the transformation of the .txt file (the input).

 

 

 

Thanks and Merry Christmas!


I'm not surprised. you can't find anything there!  The vi BD is so large that the navagation window hangs!  I would not even care to run VI analizer on it.  The first control I tied to find on the BD was even hidden behind a case structure.  Now that LabVIEW crashed I will forget I tried to look at that abomination.

 

At least you have a great example of WHY we encourage you to write modular scaleable and readable code with some clear comments and documentation.


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 17
(1,315 Views)
And attaching the ppt file file was just silly.

Anyone with a little experience with Excel can read the file and plot the data. You do that and tell everyone here if the file contains anything at all resembling the plot image. When you have done that, then someone can tell you how to read the file with LabVIEW.
0 Kudos
Message 12 of 17
(1,299 Views)

hi,

 

please don be harsh as i didnt write the vi file. i attached the data file again in more arranged manner for easy understanding. i have use the same data in excel and manage to plot the graph. can anyone advise on how to plot the graph using labview. i have attached an image file on how to interprete the txt file.

Download All
0 Kudos
Message 13 of 17
(1,275 Views)
Solution
Accepted by topic author varsha88

I thought you had already fixed the text file with the mixed delimiters. I went ahead and replaced all tabs with spaces and it read fine.

 

 

Message 14 of 17
(1,247 Views)

hi,

 

i try to build the block but cannot get the result. can u help me to send the vi file which u build. 

0 Kudos
Message 15 of 17
(1,222 Views)
Hi varsha,
-Did you fix your text file as suggested by dennnis?
-The text file has "tab" (\t) in some places and blank space in some places. So, the read file cannot get all data properly.
-First make sure you have only one delimiter in your text file and then read using read file.
Thanks
uday
0 Kudos
Message 16 of 17
(1,214 Views)

Thanks! It worked!

 

Have marked Dennis's reply as a solution.

 

-Varshaa

0 Kudos
Message 17 of 17
(1,192 Views)