Page 1 of 1

Command to generate percent report

Posted: Sat Jul 02, 2016 5:40 pm
by moocow2024
Currently creating a very basic macro to reduce some keystrokes in chemstation.

Here's what I have so far:
chromatogr 14.087:19.246,234,235,237,239

integrate

draw 2
Like I said. Very basic. I started reading up on macros yesterday.

My normal routine would be to extract ions, integrate, then generate a percent report for peak height and corrected area for each m/z.

When I use the PCTRPTOPT with no parameters specified, it fails to generate a report.

I know that I'm extracting and integrating correctly because it shows up with my draw command... but I can't even manually generate a percent report after that. The report is empty.

Does anyone have any suggestions or advice?

Thanks!

Re: Command to generate percent report

Posted: Mon Jul 04, 2016 12:50 am
by chemstation
Start the logging feature to a file, and do what you usually do manually,
after you create the report, stop the logging.

Examine the log file and pick out the necessary commands.

Re: Command to generate percent report

Posted: Mon Jul 04, 2016 6:41 pm
by moocow2024
Thank you. That was what I needed.

Follow up question if you don't mind....

Now that I have my macro sequence in working order, I've coupled it with NextSample.mac.

I would love for my macro to run for the first sample, load the next, and then loop the entire macro until it can't find a new file in that directory.

I'm playing around with WHILE ENDWHILE and IF operators, but haven't found an appropriate command to start the macro from the beggining. Any suggestion there? Thanks again.

Re: Command to generate percent report

Posted: Tue Jul 05, 2016 1:06 am
by chemstation
Hi,
I strongly recommend not to alter any manufacturer macros, as 1) it invalidates the software installation and 2) supporting the macro becomes far more difficult.

I recommend that since you have a functioning macro, and you want to do batch processing, that you utilise the functionality offered under the menu items
Tools ->Dolist

and select Macro, edit the command line to execute your macro , and click "Add", you can remove the other process if you don't need them.

This will execute your macro from the beginning each time, on all the files that you select in the next windows.

I also suggest that you pause the printer, until you gain familiarity with the interface, so that paper isn't wasted.

Re: Command to generate percent report

Posted: Tue Jul 05, 2016 2:46 pm
by moocow2024
Thanks for the help.

I have not edited any existing macros. If I needed to alter the function of an existing macro, I assume copying the macro code to a new, differently named macro, would be just fine. Correct?

Thanks again. It is very much appreciated.