LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphing selected data from a text file

Hi everyone,

 

I have been trying to graph the data in the attached file but to no avail. I am trying to plot the time against the parameters after it. I only need to plot those where the ID=1. So far I have attempted reading the file and feeding it into a while loop (to loop through the lines) and had a case structure inside this loop to determine wether the ID=1. I didn't succeed and I am very baffled. Any help would be gratefully appreciated.

 

Thanks

 

Jack

0 Kudos
Message 1 of 2
(2,304 Views)

Lots of ways to do this.

 

One is to use SCAN STRING from FILE and use the format to match your ID=1 lines.  Since the ID=173 lines are missing some numbers, the scan will report an error and you discard it.

 

If you succeed, you know the line is valid, you could check for ID=2 or something at that point, then append the valid ones to an array you're building in a while loop.

 

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 2
(2,298 Views)