-
- Posts: 38
- Joined: Mon May 28, 2007 10:37 pm
Advertisement
simdis time slices on chemstation
Discussions about chromatography data systems, LIMS, controllers, computer issues and related topics.
4 posts
Page 1 of 1
Can anyone tell me how to export simdis time slices of regular time intervals from chemstation (I'm using A.10.01) to a .csv file? Or, is there a not-too-difficult way to convert the raw .ch data to .csv? Thanks!
-
- Posts: 584
- Joined: Mon Sep 13, 2004 8:22 pm
Try this macro.
*****************************************************
Name csvfile
Local cols,runtime,signal,i
cols=DataCols (Chromreg)
Open "C:\temp\test.csv" For Output as #5
For i=1 To cols
runtime=Data (Chromreg,0,i)
signal=Data (Chromreg,1,i)
print#5,runtime,",",signal
Next i
Close#5
endmacro
********************************************************
It is bare bones, but you can see if it will do what you need.
Copy the information above into Notepad and save it as Makecsv.mac
Copy this file into the CORE directory of your ChemStation.
With ChemStation running, type into the Command line "macro makecsv.mac" (Quotation marks not needed)
Make sure that you have a folder named 'Temp' in your C drive or change the file name in the 'Open' statement in the program.
Make sure you have a data file loaded into ChemStation.
Type into the Command line 'csvfile'. You should get the csv file into your folder.
Gasman
*****************************************************
Name csvfile
Local cols,runtime,signal,i
cols=DataCols (Chromreg)
Open "C:\temp\test.csv" For Output as #5
For i=1 To cols
runtime=Data (Chromreg,0,i)
signal=Data (Chromreg,1,i)
print#5,runtime,",",signal
Next i
Close#5
endmacro
********************************************************
It is bare bones, but you can see if it will do what you need.
Copy the information above into Notepad and save it as Makecsv.mac
Copy this file into the CORE directory of your ChemStation.
With ChemStation running, type into the Command line "macro makecsv.mac" (Quotation marks not needed)
Make sure that you have a folder named 'Temp' in your C drive or change the file name in the 'Open' statement in the program.
Make sure you have a data file loaded into ChemStation.
Type into the Command line 'csvfile'. You should get the csv file into your folder.
Gasman
-
- Posts: 38
- Joined: Mon May 28, 2007 10:37 pm
Your macro works like a charm! You are awesome GasMan! Thank you! Thank you! Thank you!
-
- Posts: 1
- Joined: Thu Apr 14, 2011 5:52 am
Hi,
New to the forum and relatively new to chromatography, but hopefully someone can help me out. I am trying to do the same thing (Extract GC-MS chromatograms into a .csv or other delimited text file) but this macro won't work with my version of Chemstation (D. 02.00.275) which appears to use a different directory and file structure than that used in that which this macro was written for.
I've tried monkeying around in the macro language and can get the chromatogram data into a data object ('chromatogr' command) but can't figure out how to get the individual columns out of that structure. The 'tabulate' command will put out a file, but it is horribly formatted (ideally, I'd like a RT column, then ion1, ion2, etc.).
Anyhow, I have already banged my head against this problem enough for my liking, anyone want to swoop in and tell me what to do?!?!
Thanks in advance,
Andy
New to the forum and relatively new to chromatography, but hopefully someone can help me out. I am trying to do the same thing (Extract GC-MS chromatograms into a .csv or other delimited text file) but this macro won't work with my version of Chemstation (D. 02.00.275) which appears to use a different directory and file structure than that used in that which this macro was written for.
I've tried monkeying around in the macro language and can get the chromatogram data into a data object ('chromatogr' command) but can't figure out how to get the individual columns out of that structure. The 'tabulate' command will put out a file, but it is horribly formatted (ideally, I'd like a RT column, then ion1, ion2, etc.).
Anyhow, I have already banged my head against this problem enough for my liking, anyone want to swoop in and tell me what to do?!?!
Thanks in advance,
Andy
4 posts
Page 1 of 1
Who is online
In total there are 38 users online :: 0 registered, 0 hidden and 38 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 38 guests
Most users ever online was 4374 on Fri Oct 03, 2025 12:41 am
Users browsing this forum: No registered users and 38 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.
- Follow us on Twitter: @Sep_Science
- Follow us on Linkedin: Separation Science