LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

text file numerical data in columns (spaces between colums) to graph after averaging each 500 columns values.please help.

Solved!
Go to solution

i have a text file with numerical data in three columns,(first i need to skip the few lines of text within the file above the three column of data values)then i need to convert the numerical values above "-999" to zero,then take the average of each 500 values in the first column (second and third colum needs the same operation separately),thus found average values are to be stored into a text file and finally plotted in a graph separately. Please help.Its apart of my project work.

0 Kudos
Message 1 of 13
(3,238 Views)

and you want that someone does the job for you ?

What is exactly your problem ? Begin by reading the file.

 

What you want to do is verry easy. Post your code, whith an exact problem.

Best Regards,

V-F
Message 2 of 13
(3,227 Views)

thanks for the reply, am really new to labview..only a few days now..i am suppose to do this much of work by this friday..am trying but even to successfully 'plot numerical data (multiple columns) from a text file, to a chart' seems hard to code without errors..:-(

Download All
0 Kudos
Message 3 of 13
(3,220 Views)

Project complete, almost anyway.

 

If you are planning to submit this, you better understand how it works. Also, if you have saved some time because of this consider giving that time to a charity of choice!

 

Here:

Spoiler
project.png

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 4 of 13
(3,207 Views)

thanks for the reply friend, but the code i sublitted is not working and i dnt know how to correct it..please help

0 Kudos
Message 5 of 13
(3,199 Views)

Post your vi my friend.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 6 of 13
(3,194 Views)

i have a text file with numerical data in three columns,(first i need to skip the few lines of text within the file above the three column of data values)then i need to convert the numerical values above "-999" to zero,then take the average of each 500 values in the first column (second and third colum needs the same operation separately),thus found average values are to be stored into a text file and finally plotted in a graph separately.

 

" i am attaching the code tht i hv done so far, its for reading and plotting the numerical data from text, but its not working 😞 "

0 Kudos
Message 7 of 13
(3,183 Views)

Hi Mahisnair,

 

you may try that one:

check.png

Remember: it's never a good idea to include multiple spaces for better looking text files 😉

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 13
(3,179 Views)
Solution
Accepted by topic author Mahisnair

Another version, just drag and drop:

project.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 9 of 13
(3,174 Views)

@ : i am really thankful for the reply, being new to labview am not tht familiar with every icons in labview..it would be of great help if u could attach the ".vi code' of the png image u showed.

 

Regards,

Mahisnair

0 Kudos
Message 10 of 13
(3,166 Views)