Page 1 of 1

How to run a post-run macro

Posted: Wed Jul 23, 2014 8:13 am
by Edlumm
Hi,

I’m working as a trainee and I’m trying to run any post-run macro at the end of the method. The macro should be executed in the Data Analysis Window.
The ChemStation version is MSD ChemStation E.02.01.1177.
I’ve checked the mark on Post-Run Macros/Commands in the Method Information Window and specified path and name of the macro (for example: C:\msdchem\Msexe\test.mac). Seems to me like this doesn’t work at all.
Also I’ve tried to start my macro from the de user.mac by typing in the deuser.mac: macro “test.mac” ,go. The macro gets executed. A simple macro only containing the command FILE opens the File-Window but there is no Ok-Button so I can’t select a data file. So this way seems somehow mistaken too.
Can anyone help me out with this issue and give me a tip on how this works correctly?
I would appreciate your help very much, tanks.

Re: How to run a post-run macro

Posted: Wed Jul 23, 2014 3:43 pm
by Yama001
If I recall correctly, you may need to edit the method to be sure Data Analysis is checked to run after acquisition - the will lanch a new Data Analysis window and execute your macro, then the window will close out. Your macro will not be executed in an existing Data analysis window.

Re: How to run a post-run macro

Posted: Thu Jul 24, 2014 7:25 am
by chemstation
Hello Edlumm,

It appears you are trying to do post run batch processing.

Click on Tools -> DOLIST...

There is the opinion to select "Macro", then choose the macro you wish to launch

then a Dialogue box for multiple File Select will appear. etc....

regards
Alex

Re: How to run a post-run macro

Posted: Mon Jul 28, 2014 9:24 am
by Edlumm
Thanks for your help!

@ Yama001: Data Analysis is checked, but in my case the Data Analysis window dosn't open. Nevertheless the commands in the deuser.mac are executed and everything works just fine (except the FILE command). I guess in my case the FILE command is useless anyway, because I want to work with the current datafile and this is already loaded when the deuser macro runs.

@ chemstation: I'm not sure when to use your described way, but in my case using the deuser.mac is the right way.