Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I read Mickeys?

Status
Not open for further replies.

CarnMeynen

Programmer
May 28, 2007
2
GB
Hi Folks

I am developing a serial port encoder for our telescope here in Swansea. It uses the two wheels of mouse, one connected to the declination axis and the other connected to the right ascension axis. The mechanism is connected to the serial port.

The encoder is a plug in for Cartes de Ciel, written in Delphi. I would like to know how to read the encoder Mickeys. That is, ths single units of movement of each wheel coming in through the serial port. Remember this is Windows, not DOS so reading the hardware is frowned upon but documentation on this matter is pretty sparse.

Thanks in advance.

Andrew Sprott
IT Officer
Swansea Astronomical Society
 
you should be able to grab yourself a comms vcl and capture the info comming from the mouse.

Aaron
 
Hi

I don't know what I'm supposed to do with Asyncpro, and the comport component is fine but it is designed to read data from a serial device like a modem.

How can I use it to read a mouse?

Andrew
 
Cport will allow you to capture whatever data stream appears on the COM port, not just a modem.
You need to know the protocol (data structure) the comm speed and the handshaking rules for whatever device it is that you are trying to 'read'.










Steve [The sane]: Delphi a feersum engin indeed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top