Info block Generation
Posted: Thu Apr 14, 2016 9:44 pm
Hello again, JConley here.
I am still working on the averaging macro mentioned in another thread (took a hiatus from the project for a month or so) so I am more or less in the same stage in developing.
My macro will take a number of sample measurements, average them, add an info block, save the file in a "standards" directory, and add the file (with info block) to an in-house spectrum library. I am still working out the kinks for the info block.
I just got the info block to add to the averaged spectrum correctly, but when I save the avg file as a different file name in an organized location, the info block does not save with it. The avg file is dumped in my default directory prior to adding the info block. The info block is added, but only as a temporary manipulation - a red page sits above the blue page icon to the left of the filename. If i unload the avg file and reload, the info block is gone. As I save the file under a new name, the info block is lost.
To save, I am using the SaveAs command: SaveAs([<$ResultFile 2>: Spec, Info], ...
Is there an intermediate step that should be taken to finalize the info block? or perhaps a different save command?
In the InfoInput command parameters, there are two, INM and IFN, that are both defined as "Info Definition Filename" in Section 11 of the programming manual. In my macro, the INM is defined as the file path to the info mask I am using. IFN is set to default. What is the difference between these parameters?
Also, what file extensions besides .jpg are allowed on this forum? I try to post the macro text, but .mtx, .txt, and .pdf are all blocked.
Thanks in advance for any responses.
JConley
Fourier Transformer
I am still working on the averaging macro mentioned in another thread (took a hiatus from the project for a month or so) so I am more or less in the same stage in developing.
My macro will take a number of sample measurements, average them, add an info block, save the file in a "standards" directory, and add the file (with info block) to an in-house spectrum library. I am still working out the kinks for the info block.
I just got the info block to add to the averaged spectrum correctly, but when I save the avg file as a different file name in an organized location, the info block does not save with it. The avg file is dumped in my default directory prior to adding the info block. The info block is added, but only as a temporary manipulation - a red page sits above the blue page icon to the left of the filename. If i unload the avg file and reload, the info block is gone. As I save the file under a new name, the info block is lost.
To save, I am using the SaveAs command: SaveAs([<$ResultFile 2>: Spec, Info], ...
Is there an intermediate step that should be taken to finalize the info block? or perhaps a different save command?
In the InfoInput command parameters, there are two, INM and IFN, that are both defined as "Info Definition Filename" in Section 11 of the programming manual. In my macro, the INM is defined as the file path to the info mask I am using. IFN is set to default. What is the difference between these parameters?
Also, what file extensions besides .jpg are allowed on this forum? I try to post the macro text, but .mtx, .txt, and .pdf are all blocked.
Thanks in advance for any responses.
JConley
Fourier Transformer