Reading from serial port
Posted on 1999-01-21
I have to process and store data that comes from a measuring instrument via serial interface (4800 baud, 8Bit, 1 Stopbit, no parity). The instrument sends the date correct, I can test this with a terminal program, the only problem is to recieve the data it sends.
Simply listening on the port only produces garbage (as expected), and I don't know how to initialize the COM port to read from it. The most specific help I have found about that topic in programming guides was "there are standard libraries for that problemn with most compilers", but neither which library nor which routines or how to use them.
The program hast to run under DOS, as we can't know which computer we will take out. For compilation I use Turbo Pascal 7.0, but there are also a Turbo-C and a Delphi compilers available. If you can help me, please send a short description of the routines, where to find them and how to use them. If all other fails, and you have some Low-Level routines, I can test them too.
Thanks in Advance