?
Solved

COM access in Delphi 2

Posted on 1997-05-31
1
Medium Priority
?
189 Views
Last Modified: 2010-04-06
Hi there! Need a SIMPLE and RELIABLE way to access the COM port in Delphi 2. I do know, how to open and close port, and how to set it up. I am looking for the best way how to read and write data. I am communicating with the special piece of hardware and it has its own protocol.
Any ideas? Thanx a lot. Bocian....
0
Comment
Question by:Bocian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
alona041797 earned 200 total points
ID: 1336701
Access it as a text file if it uses text interface or as a bianry file if it uses binary interface:

var comport:textfile;
    s:string;

begin
  assignfile(comport,'com1:');
  rewrite(comport);
  writeln(comport,'your data here');
  {...}
  readln(comport,s);
  closefile(comport);
end;
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question