Export a Wave as CSV and generate the x values as a extra column

Hallo,

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 exporting using the menu Data > Save Waves > Save General Text || Save Delimited Text, select the "Write Row Positions" check box on the left of the save waves dialog.

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.
Lars wrote:
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)?


A quick test indicate that does work with 1D waves (to my surprise):
Make test = {1,2,3}
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.