LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a text file with Time V Voltage info

Hi, I have text files with Time and voltage info in a separate column in each which i want to plot. The problem is that the time values are not read in correctly so I must read in the data as strings, line by line.

The data looks somthing like this

10:43:04 0.032
10:43:05 0.225
10:43:06 0.52
10:43:07 -0.563

The´colons in the time mean that if i simply read in the file directly that the time gets messed up, so i am trying to read it line by line, without success. I have tried using shift registers and while loops without success. I have tried the ´match pattern´ idea, but have been unable to generate the two columns that I want. Is there an easier solution (e.g. being able to read in the time in a way that doesn´t
get messed up?)
thanks!
John M
0 Kudos
Message 1 of 4
(2,607 Views)
Hi,

Here's the parsing part. Putting it in a graph/chart should be easy, but
depends on the type of chart.

Regards,

Wiebe.

"Floss" wrote in message
news:50650000000800000070D80000-1079395200000@exchange.ni.com...
Hi, I have text files with Time and voltage info in a separate column
in each which i want to plot. The problem is that the time values are
not read in correctly so I must read in the data as strings, line by
line.

The data looks somthing like this

10:43:04 0.032
10:43:05 0.225
10:43:06 0.52
10:43:07 -0.563

The?colons in the time mean that if i simply read in the file directly
that the time gets messed up, so i am trying to read it line by line,
without success. I have tried using shift registers and while loops
without success
. I have tried the ?match pattern? idea, but have been
unable to generate the two columns that I want. Is there an easier
solution (e.g. being able to read in the time in a way that doesn?t
get messed up?)
thanks!
John M



[Attachment parse string.vi, see below]
0 Kudos
Message 2 of 4
(2,607 Views)
Can you save that and attach it in an older version format - version 6.1 is what I have... thanks!
John
0 Kudos
Message 3 of 4
(2,607 Views)
ok.

>Can you save that and attach it in an older version format - version
>6.1 is what I have... thanks!
>John

>>Hi,
>>
>>Here's the parsing part. Putting it in a graph/chart should be easy, but
>>depends on the type of chart.
>>
>>Regards,
>>
>>Wiebe.

>>"Floss" wrote in message
news:506500000005000000C48E0100-1079395200000@exchange.ni.com...
>>> Can you save that and attach it in an older version format - version
>>> 6.1 is what I have... thanks!
>>> John



[Attachment parse string 61.vi, see below]
0 Kudos
Message 4 of 4
(2,607 Views)