LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot graph -y values versus timestamp stored in txt files

Dear all,

 

i have a set of measurement results that i saved in text file. First and second column are timestamp values while third and fourth values are results from my two sensors. Mayi know can anyhow help to extract these results and plot them onto a graph or xy graph? I have problem plotting the timestamp results (x axis) onto the graph.

 

I have attach sample of the text files. Thanks for your help!

0 Kudos
Message 1 of 8
(3,739 Views)

Maybe not an elegant solution but it works.

test2_graph.png

 

It is interesting that two different separators are used in your text file: space and TAB.

0 Kudos
Message 2 of 8
(3,716 Views)

Dear sir,

 

Thanks for illustrating to me for the plotting. I got one question to ask. What does the string  %.;%g means? I know %g but what does %.; means?

 

How should i modify the codes if let say i have more columns instead of only two columns of measurment data? I have 10 columns of data in the spreadsheet now. I tried to modify your existing codes for the 10 extra columns and it works but the code is quite lengthy as i have 8 more scan string icons.

 

Any elegant way to code it to make it shorter?

 

Thank you and i am glad if anyone can give some feedbacks.

0 Kudos
Message 3 of 8
(3,691 Views)

Dear all,

 

Attached is the program i wrote for inclusion of 5 columns of data. I am wondering if i have more than 5 columns, say 50 columns of data. How can i write more efficient codes to cater  for more columns of data? It will be quite lengthy program if more columns of data are present.

 

Anyone can assist on that?

 

 

 

 

testing.png

0 Kudos
Message 4 of 8
(3,678 Views)
0 Kudos
Message 5 of 8
(3,655 Views)

Dear all,

 

I have the same set of data but it is saved in excel format instead of text file now. However i think the column data are separated by tab, i have tried to use the same code as above but it dont seem to plot out the graph properly. Can anyone help out?

0 Kudos
Message 6 of 8
(3,579 Views)
0 Kudos
Message 7 of 8
(3,550 Views)
Message 8 of 8
(3,530 Views)