Advertisement

Chemstaion Macro to create ASCII (ANSI) Text file

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

2 posts Page 1 of 1
Dear's
I have macros in Chemstaion B4 that send run and sample info to a text file.
e.g.
OPEN DADATAPATH$+DADATAFILE$+"\"+DFILE1$+"LTS" for output as #13

In previous version B2 it was working fine and generate the text file as ASCII format (ANSI), while with the new version B4 it generate the file with Unicode Format, that is not fit with other my company software’s.

Could you give me some help how to create the generated file with ASCII format (ANSI)

Thanks in advance.
See Agilent manual on version upgrade, excerpted below.

I haven't used this tool, you can also do this with DOSRUN and TYPE command, but might as well use their utility. So just convert the file after closing it, then you can import to LIMS. Also, if LIMS is open source you ought to be able to just change the way it opens files to read UNICODE. I'm in the (slow) process of implementing an open-source Access LIMS, so I'm gradually learning about these issues. I have noticed it's very important to pay attention to what format worklist file is in or import is impossible.
---------------------------------------------------------------------------------------

Converting Unicode to ANSI
Installed custom solutions need verification that the used program is able to
read unicode-based files. If this is not the case, either the program needs to be
adapted to allow unicode encoding, or the files need to be converted to ANSI
standard files. Agilent provides a conversion tool UnicodeToAnsi.exe which is installed
automatically in following directory during installation: x:\Chem32\sys
This tool allows easy conversion of Unicode-based files to ANSI standard files
and should be executed after the Unicode-based file has been created. The
following macro illustrates the use:
a= execnowait (“UnicodeToAnsiFile.exe ”+ “c:\temp”+”\ansi.txt”)
Note: Be aware that there must be a blank after the UnicodeToAnsiFile.exe.
-----------------------------------------------------------------------------------------
2 posts Page 1 of 1

Who is online

In total there are 308 users online :: 1 registered, 0 hidden and 307 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: Bing [Bot] and 307 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