Page 1 of 1

Plotting XY plots automatically from *.csv files

Posted: Tue Sep 08, 2009 3:31 pm
by pinkstaffp
I have been experimenting with macros. I used this code:

Directory(".\")

FileType(4)

ForFilesIn("*.csv",A)

NextFile

to acceess several *.csv files, but I always get Specify Columns to Plot
window in which I must click OK. See http://72.22.89.232/specify_columns_to_ ... 00_edt.png for an example of the window. The plots are all XY plots.
How do I tell Dplot, with macros, to go ahead and plot. Here is my results
http://72.22.89.232/macro_testing_start ... cro_04.png achieved by clicking OK for each file. The scribble is all the *.csv files plotted. While I am at it here is my learning macro: http://72.22.89.232/macro_testing_text.txt, which started with the graph paper macro.


Thanks,

Paul Pinkstaff[/b][/code]

Posted: Tue Sep 08, 2009 10:44 pm
by DPlotAdmin
"How do I tell Dplot, with macros, to go ahead and plot."

You can't. But that's a good suggestion for the next release. In the meantime, open a file manually and uncheck the "Pick Columns to Plot" box. The setting is persistent, so next time you run your macro you won't be prompted.