Post-run Macro to export Signal Raw Data to ASCII

Dear All,

 

I'm using a GC system 7890A and controlling it with Chem-Station software.

 

I was wondering if anyone can help me in finding a way to automatically export the signal raw data to an ASCII file, ideally also with the option of choosing the folder destination.

 

I have already tried to modify the report output, however I managed to produce only a .txt file containing the integrated peaks' area, but not the signal raw data (X and Y values).

 

I think the answer lies in writing a post-run command/macro to be inserted when I edit the method that I use, however I am really unfamiliar with macro running and would be grateful if you could help me in this, or any other solutions I am not aware of.

 

Thanks in advance for your time

 

Best Regards,

 

Amedeo

Parents
  • Hi Amedeo,

    Here is a quick proof of concept for exporting the signal.

    Is this what your looking for?  How would you want to choose a folder destination?

    Do you know how to load macros at system initialization?

     

    NAME EXPORTSIGNAL

        Local TimeSignal        !Number of x axis data points

        Open "C:\Chem32\Report.txt" for output as #3

        TimeSignal = DataCols(ChromReg[1])

        for i = 1 to TimeSignal

            print #3, Data(ChromReg[1], 0, i), "," , Data(ChromReg[1],1,i)

        next i

        Close #3

    ENDMACRO

     

    Attached is what the macro generated.

    Tim

    Report.txt.zip
Reply
  • Hi Amedeo,

    Here is a quick proof of concept for exporting the signal.

    Is this what your looking for?  How would you want to choose a folder destination?

    Do you know how to load macros at system initialization?

     

    NAME EXPORTSIGNAL

        Local TimeSignal        !Number of x axis data points

        Open "C:\Chem32\Report.txt" for output as #3

        TimeSignal = DataCols(ChromReg[1])

        for i = 1 to TimeSignal

            print #3, Data(ChromReg[1], 0, i), "," , Data(ChromReg[1],1,i)

        next i

        Close #3

    ENDMACRO

     

    Attached is what the macro generated.

    Tim

    Report.txt.zip
Children
No Data
Was this helpful?