
Question concerning the Igor Text Wave loader

Toms
Dear users,
I am a physicist and I have some problems with the import of Igor Text Wave. In the past I used a program that exported my data in .pxt. In these files I had useful information in the note section. Now my new software exports my data in .itx files but I have no more information after loading. In the header of the .itx files this information is present but it is commented (see attachment). Is it possible to read this information and reposition it in note?
thank you in advance
Th.
IGOR X //Created Date (UTC): 2021-Mar-05 13:31:06.073336 X //IGOR Text File Exporter Version: 0.3 X //Acquisition Parameters: X //Scan Mode = Fixed Analyzer Transmission X //User Comment = Toms
In order for this information to be added to a wave note, the comments would need to be changed to Note commands, for example:
So whatever software is writing the .itx file would need to be changed.
If the note is not associated with a particular wave, it might be stored in a global string variable, like this:
February 1, 2022 at 09:05 am - Permalink
Damn my fears are confirmed. I don't have access to the software that exports my data... The developers are not necessarily the users -^-^-
Anyway, thanks for the reactivity
February 1, 2022 at 09:31 am - Permalink
Hmm... I don't know how this looks in the file, but if the information is there it should be possible to load it in some way, e.g., by FReadLine or FBinRead. Could you post an example file and a description what you want to do with the info (e.g., assign it to a wave etc.)?
February 1, 2022 at 11:47 am - Permalink
The information is just a note to remember the parameters of the experiment. So I want to store them in the note section of the 3D wave generated by the software. I attach the complete structure of my .itx files.
February 1, 2022 at 08:34 pm - Permalink
Here is a small script which should load this information. The header is saved into all loaded wave notes. Invoke LoadITXwithHeader() directly to load the file manually. There is an additional BeforeFileOpenHook() function in there which covers loading via drag-and-drop and double-clicking the file (I find it more convenient this way). Let me know if you encounter any problems.
February 1, 2022 at 11:29 pm - Permalink
Nice.
I think you're missing a close statement, should be just before LoadWave. Or maybe LoadWave forces a close? Even so it would nice to close the file.
February 2, 2022 at 12:21 am - Permalink
Tony, good catch. I have added the Close statement into above post. I don't know if the file is forcibly closed by the LoadWave command or if the open file stack gets just full at some point, but we'd better not test our luck here. :)
February 2, 2022 at 12:31 am - Permalink
If you want to add a menu item:
February 2, 2022 at 12:37 am - Permalink
Thanks, I am trying to incorporate this code into my procedure.
February 2, 2022 at 10:01 am - Permalink