From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parse .txt file

I have a .txt file that logs data every 1 min for certain elements and would like to parse the text file to show only every 5mins to the user. I have attached the txt file and the VI I'm working on with this question.

 

 

For example the text file shows for ECG Rate: ECGRATE$<UNIT=/min>&<TIME=2014-01-28T09:37:18><VALUE=44>&<TIME=2014-01-28T09:38:19><VALUE=44>&<TIME=2014-01-28T09:39:18><VALUE=47>&<TIME=2014-01-28T09:40:18><VALUE=45>&<TIME=2014-01-28T09:41:19><VALUE=43>&<TIME=2014-01-28T09:42:18><VALUE=42>&<TIME=2014-01-28T09:43:19><VALUE=44>&<TIME=2014-01-28T09:44:18><VALUE=46>&<TIME=2014-01-28T09:45:18>

 

I would like to display the current value on the front panel only every five mins. 

Bonus would be in addition to the above would be plot all values on a graph also, but lets start with the first step.

Download All
0 Kudos
Message 1 of 4
(2,315 Views)

I found this community example on how to parse a text file line by line. Perhaps you could modify it to suit your needs:

 

https://decibel.ni.com/content/docs/DOC-10662

Jeff L
National Instruments
0 Kudos
Message 2 of 4
(2,256 Views)

Thanks I will take a look at this.

0 Kudos
Message 3 of 4
(2,246 Views)
0 Kudos
Message 4 of 4
(2,232 Views)