
Please Help, How to Export Graph as Text File

redrmangus2
I was wondering if someone can help me with this. I have a plot with multiple waves and it some cases 2 different y-axes and I was wondering how to make a procedure that would export these graphs as text files so that I can import them easily into another program (Excel or KaleidaGraph).
Thanks!
If you have x-waves you also want to include in the file, you will need to modify the stringlist to contain the x-waves in the proper location (do you want them first or last???). If your datawaves are in various folders, the stringlist will have to be modified to contain the complete folder paths (root:folder1:wave1; root:folder2:wave2;)
May 31, 2013 at 07:11 am - Permalink
May 31, 2013 at 07:24 am - Permalink
Thank you! I don't have any x-waves to worry about. But I am a little confused with the procedure you gave me. I created a procedure in Igor, saved it at a macro, put the graph I wanted on top but i get an error highlighting "list" saying expected wave name.
May 31, 2013 at 07:46 am - Permalink
Not sure what that means but if you:
- open the procedure window and copy the following into it:
- then click on the graph from which you want to export the data (this is important to make it the "top graph")
- then click on the command window and execute "ExportData()" from it. Or chose it from the Macro menu. That should work.
Alternatively, just execute the two commands within the function from the command line, after having clicked on the graph
May 31, 2013 at 08:00 am - Permalink
May 31, 2013 at 08:01 am - Permalink
when I do that, I get the error I talked about in the above post. I have verbatim that.
May 31, 2013 at 08:11 am - Permalink
What about my previous post? Make sure that the data plotted on the graph is in the current datafolder.
May 31, 2013 at 08:16 am - Permalink
If I use your update procedure I get a different Macro Execute Error Stating "expected wave name, variable name, or operation" in reference to the wave in "Wave w"
May 31, 2013 at 08:24 am - Permalink
May 31, 2013 at 08:41 am - Permalink
May 31, 2013 at 08:51 am - Permalink
OK, so the error is gone, but as I run the macro, nothing happens. I don't know where it is being saved if it is.
May 31, 2013 at 10:06 am - Permalink
One last thing (sorry to keep perstering you), do you know how I can include the x-axis in the export? Was taht what you were talking about regarding the x-wave?
May 31, 2013 at 10:33 am - Permalink
One last thing (sorry to keep perstering you), do you know how I can include the x-axis in the export? Was taht what you were talking about regarding the x-wave?
May 31, 2013 at 10:19 am - Permalink
As to your X values question, other programs may want to have the X values listed out for them.
This function should do the trick:
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
May 31, 2013 at 07:55 pm - Permalink