Solved

how can i get data from com port ?

Posted on 2003-11-01
4
234 Views
Last Modified: 2010-04-05
How can i get data from comport .What component do i have to use to get?
0
Comment
Question by:petervn
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 250 total points
ID: 9662482
download async pro from http://sourceforge.net/projects/tpapro/
0
 
LVL 5

Expert Comment

by:DeerBear
ID: 9662546
Hi,

Another option is to use TComPort.

HTH,

Andrew
0
 
LVL 5

Expert Comment

by:DeerBear
ID: 9662550
Hi again :-)

I was forgetting! ^_^

You can try with Windows APIs using COM ports as files.
It should be possible for example to write something like
this:

uses SysUtils;

var T : TextFile;

begin
   AssignFile( T,'LPT1:' );
   Rewrite( T );
   write( T,'This is my printed text' );
   CloseFile( T );
end.

It should work with other ports too.

Please bear in mind that is UNTESTED.

HTH,

Andrew
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 9666108
Why a C grade?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now