Advertisement

Chemstation macro error, using the correct guide? No Chemres

Discussions about chromatography data systems, LIMS, controllers, computer issues and related topics.

4 posts Page 1 of 1
Hello,

I'm writing macros with chemstation. This is the version information:

MSD ChemStation F.01.01.2317
Copyright 1989-2013

The macro guides I've found all talk about Chemres. Also people on this forum have written code saying it should show a number if I write this in the command line.

Print ObjHdrVal(Chemres,"AcqMethModTime")

When I write that code, or try to use Chemres as the programming guide instructs, I get this error:

"Undefined symbol: Chemres"

Any ideas why? My only guess is that I'm using a version that doesn't use chemres, if so does anyone have any direction toward the correct guide for me?

The overall purpose is to save a compound's response information from a loaded GC/MS run file as a variable in a macro. So if someone knows how to do that, it would also be much appreciated.
Hello,

Welcome to the Forum.

Please be aware that the name Chemstation can refer to two different pieces of software that use different scripting languages (macros).
1) GC/LC ChemStation (code name Leonardo) was written in Germany.
2) GC MSD ChemStation (code name Mustang) was written in the USA.

the code you referred too is from the GC/LC not the GC MSD version, so it will not work.

type in " symboldump " into the command line, and then clink on print, to open up a text file with all the current CP variables for that data file.

kind regards
Alex
Ah that makes sense, thank you. Symboldump works and gives good information. However, without chemres I still have my original problem of getting responses from compounds.

We quantify samples for known lists of compounds. I'd like to choose a specific compound from our list and get its response. From symboldump, I see that there is a variable, pk_area, which stores the area for the first compound. This is very helpful. Also, while using QEdit, I see that the pk_area variable changes to reflect the compound I am currently viewing with QEdit. I also notice that using QEdit changes some of the recognized variables, but the point is that pk_area can somehow represent each compound.

So, how can I use a macro to make pk_area reflect a specific compound from my list?

Again, any help is appreciated, and if anyone can point me toward a document that better explains the programming language that would be great!

Thanks.
If all you want is data and not graphics, I suggest you use the custom reports , the .CRT file opens up in excel,
just don't save it in excel, otherwise excel corrupts it.

And then use the DoList function when you want to do a batch process of a number of files.

The advantage of this is that it is already setup, and you don't need to maintain any macros.

from the RPTALL.CRT template file:

Note: The template, RPTALL.CRT, is shipped with the software.
It can be used to demonstrate the capabilities of report templates in Custom Reports.
This template accesses all of the data normally available in the software.

It can also be modified to use with your data and your method:

1 ) Load your data file in Data Analysis and then run Custom Reports.
2 ) Select "Change Method Report Template" on the Control Panel.
3 ) Select "RPTALL.CRT" from the \msdchem\custrpt directory.
4 ) Select "Edit Template RPTALL.CRT" on the Control Panel and click OK.
5 ) Select File/Save As and rename the template.
6 ) Highlight each row directly below a yellow shaded title.
7 ) Select Edit/Repeat Down to insert the compounds
from the data file into the report.
8 ) (optional) Remove any unwanted sections of the template.
9 ) Select File/Save to save your report template and to link it to your method.
4 posts Page 1 of 1

Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 guests (based on users active over the past 5 minutes)
Most users ever online was 4374 on Fri Oct 03, 2025 12:41 am

Users browsing this forum: No registered users and 36 guests

Latest Blog Posts from Separation Science

Separation Science offers free learning from the experts covering methods, applications, webinars, eSeminars, videos, tutorials for users of liquid chromatography, gas chromatography, mass spectrometry, sample preparation and related analytical techniques.

Subscribe to our eNewsletter with daily, weekly or monthly updates: Food & Beverage, Environmental, (Bio)Pharmaceutical, Bioclinical, Liquid Chromatography, Gas Chromatography and Mass Spectrometry.

Liquid Chromatography

Gas Chromatography

Mass Spectrometry