02-09-2015 07:50 AM
Hello everyone, I 'm trying to plot an xy graph from a txt file and I am having some problems. I am attaching the program and and the txt file I am working on, keep in mind that it is prety basic, can anyone tell me what's wrong? Also any more information about plotting would be useful as well, for example can I plot from a machine in real time (I 'm also attaching the file I use for comunication with the machine) also is there a way to remove a line that is not in the top of the file ? . thanks in advance
Solved! Go to Solution.
02-09-2015 08:21 AM
Reading Plot Data
1. Your file is using two spaces as the delimited. Change that to be a tab.
2. You should index on the COLUM, not the row.
DAS
1. Write the file inside of the loop. Be sure to open/create the file before the loop and close the file after the loop. This will allow you to eliminate the shift register and save you a lot of memory.
2. If you want to plot data, I recommend using a chart. That way you just have to wire in the last value once you converted it to a numeric.
02-09-2015 10:02 AM
Thank you changing the things you said helped a lot. Unfortunately thought I couldn't change the delimited in the saving file (I did that in the plotting one), do you know how I can change the delimited in the program I attached? Also is there a way to delete lines in the middle of the file based on key words or something like that ?