Interfacing a PC to a UV spectrophotometer

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

Discussion Overview

The discussion revolves around interfacing an old PC with a UV spectrophotometer that previously connected to a dot-matrix printer via a serial connection. Participants explore the feasibility of using the same serial connection to send commands and receive data for charting in software like Microsoft Excel.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant suggests that two-way communication is likely necessary, requiring knowledge of the RS-232 communication parameters and the specific codes to send to the spectrophotometer.
  • Another participant mentions the importance of having access to the original documentation for the device to determine the correct communication codes.
  • A participant expresses that the settings from the old printer documentation might be applicable for the computer connection, questioning if these settings can be reused.
  • It is noted that both devices must have matching basic parameters for RS-232 communication, and that trial and error may be involved if documentation is lacking.
  • Participants highlight the need for patience and persistence in troubleshooting communication issues and understanding the commands required by the spectrophotometer.

Areas of Agreement / Disagreement

Participants generally agree on the necessity of matching communication parameters and the potential for trial and error in the absence of documentation. However, there is no consensus on the specific codes or commands needed for successful interfacing.

Contextual Notes

The discussion acknowledges limitations related to the lack of original documentation and the uncertainty surrounding the specific communication codes required for the spectrophotometer.

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