Export a Wave as CSV and generate the x values as a extra column
Lars
I'm trying to find an quick and easy way to export one or more columns as a csv/text file. I found no build in way to generate a column with the x-values while exporting. Did I overlooked something or do I need to create a new Wave with the x-values and select them for export (and delete them after that procedure)?
Regards, Lars
If you are using the save operation, the /U flag should do what you want. I suspect that it will apply to a 1D wave in spite of the documentation specifically mentioning only 2D waves.
September 14, 2012 at 07:10 am - Permalink
A quick test indicate that does work with 1D waves (to my surprise):
SetScale /P x 0, .1, "", test
Save /J /U={0, 1, 0, 0} test
This saves as tab-delimited. If you really need comma-delimited see http://www.igorexchange.com/node/2397.
Supporting comma-delimited is on my to-do list.
September 14, 2012 at 03:36 pm - Permalink
Regards, Lars
September 17, 2012 at 04:29 am - Permalink