How to avoid LoadWave/W/A creating identical wavenames from a single file "two or more names are identical"
Thu, 08/08/2019 - 01:42 am
I am attempting to use LoadWave within a larger function to import an entire folder of text files, which usually works fine (and the in-built examples to this end are very good). I use LoadWave with the /W and /A flags to read and use the column headers as wave names. The data file is a tab separated ASCII, and I've attached an example.
If you run LoadWave as below on the attached file, you will reproduce the error (I'm using Igor 8).
From my understanding, the /W flag seems to read the column headers, and then run something similar to CleanupName on the potential wave names. I think this leads to some of the column headers being identical, and thus stops LoadWave with the "two or more names are identical" error. Is that correct?
Any ideas on how to manage this error?
Ideally I'd not define the wavenames in advance (e.g., with the /B flag), since the script loads files with different data columns.
Many thanks in advance and any advice would be much appreciated
Igor Pro 8
Igor XOP Toolkit
Igor NIDAQ Tools MX