LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

txt to waveform chart

Solved!
Go to solution

Hi!

 

Just a very simple question: I have a txt file with the following structure:

2012.03.13 19:13    6.93E-05
2012.03.13 19:14    6.29E-05
2012.03.13 19:15    5.66E-05
2012.03.13 19:16    5.21E-05

.               ..

 

So tab delimited time stamps and values.

I would like to send these to a waveform chart. Can someone show me an "elegant" way to do this, I think I could do this only in a quite ugly way...?

Sample data attached, and my VI what I wrote so far...

 

Thanks in advance,

Download All
0 Kudos
Message 1 of 4
(2,343 Views)
Solution
Accepted by topic author Blokk

You were very close.  I have attached your VI with parsing for the timestamp.  You can find timestamp format codes in the LabVIEW help under Format Codes for the Time Format String.

 

Note that I only used the first two timestamps, assuming the data was equally spaced.  You could also use an XY graph and use all the timestamps, if you wanted to.  Also, to get the timestamps to show up on the graph, you need to right click the graph and deselect Ignore timestamp.

Message 2 of 4
(2,332 Views)

thanks! I 've got the point 🙂

0 Kudos
Message 3 of 4
(2,328 Views)

there was only a tiny "mistypo" in the block diagram -> the inputs of the subtract icon had to be swapped, so the output dt is positive. So the graph is okey now 🙂

Thanks again!

0 Kudos
Message 4 of 4
(2,323 Views)