----- Original Message ----- 

> My question has more to do with hardware than anything else.
> What I'm attempting to do is write my own program for handling very
> simple bio-feedback data.......

This application would be ideal for a serial link to your main PC.  I would 
base the hardware design around a Microchip PIC microcontroller, because 
they are cheap, relatively easy to program, and several in the range have 
inbuilt serial comms and lots of I/O.

The PIC can monitor the various sensors, do the A/D conversion and any other 
signal grooming required, and then pump out the data via its serial port.

Your PC software can service the data using the 'OnRxChar' event (or 
whatever the equivalent is in your chosen COM port component.

Your PIC will naturally produce its numerical data in binary form.  I 
strongly recommend converting it to BCD, hexadecimal, or decimal numbers in 
the ASCII range, and then converting that to ASCII characters, before 
pumping it out of the serial port.  That way you will avoid the nasty 
complications arising from accidentally sending serial port control codes as 
part of your data.  Look at the Microchip Web site for guidance on this. 
You can download various routines for binary-to-bcd, bcd-to-ASCII, etc.

It's ages since I've done this, but Delphi will convert hexadecimal numbers 
OK.

Hope this is of some help.

Thack 

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to