Interfacing a PC to a UV spectrophotometer

  • Thread starter Thread starter chem_tr
  • Start date Start date
  • Tags Tags
    pc Uv
Click For Summary
SUMMARY

This discussion focuses on interfacing an old PC with a UV spectrophotometer that previously connected to a dot-matrix printer via a serial RS-232 connection. The user seeks to extract data from the spectrophotometer to visualize it in Microsoft Excel. Key steps include understanding the RS-232 communication parameters and obtaining the original device documentation to identify the necessary communication codes. Successful implementation requires patience and potentially trial and error to establish two-way communication.

PREREQUISITES
  • Understanding of RS-232 serial communication standards
  • Familiarity with serial cable configurations (9-pin female and 25-pin male)
  • Knowledge of basic programming or scripting to send commands
  • Access to the original documentation or manufacturer resources for the spectrophotometer
NEXT STEPS
  • Research RS-232 communication parameters and settings
  • Learn how to use a serial terminal program to send commands
  • Investigate methods for reading and interpreting serial data in Python or another programming language
  • Explore data visualization techniques in Microsoft Excel for imported data
USEFUL FOR

Electronics hobbyists, engineers, and data analysts interested in interfacing legacy devices with modern computers and extracting data for analysis.

chem_tr
Science Advisor
Gold Member
Messages
608
Reaction score
3
Hello,

We have an old spectrophotometer which contains an outlet saying "printer/computer", and until now a dot-matrix printer has been attached to it. However, the printer is no longer functional, and I am thinking of interfacing an old PC to the spectrometer.

The printer was attached via serial connection (COM2), by a RS-232 cable of 9-pin "female" and 25-pin "male". I can use the same cable for interfacing, but how can I detect signals? Thing is, when the spectrometer finishes its task, we can push a button like "print graph" and the graph is sent to the printer. Can the same thing be done to a computer, but just taking the necessary values to draw a chart in Microsoft Excel, for example?

Thank you for your interest.
 
Computer science news on Phys.org
It is very likely that there is a 2 way communication code. If you send the correct signal to the device you can make it do things. You need to know what the parameters for the rs232 communication is, but more important you need to know what codes to send to the device. This will only be possible if you have access to the original documentation for the device.

If you do not have it, then maybe you can find something on the manufacturers web site.
 
Thank you, I guess the code includes one "stop bit", one or two "init code", etc. If so, I have a documentation of the old printer mentioning these. Is it possible to use the same settings for the computer?
 
That is the fun of RS232 communications, you need to set the basic parameters the same for both machines. As long as you can set both it is easy. If you have guess at settings on one machine it can be more fun. Documentation is essential. I can be done by trial and error, just be patient and keep trying. The commands that the device needs and how read the return messages is some thing else again.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
Replies
7
Views
4K
  • · Replies 7 ·
Replies
7
Views
16K
Replies
24
Views
5K
Replies
5
Views
5K