02-10-2011 08:12 AM
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
02-10-2011 09:19 AM
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.
Blog for (mostly LabVIEW) programmers: Tips And Tricks