Solved

how can i get data from com port ?

Posted on 2003-11-01
4
240 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
[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
  • 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
How to call a form that is in a DLL  from an application? 13 95
Delphi inherited method 6 86
PHP preg_replace code convert to Delphi 14 97
Delphi: making a BW image transparent 10 136
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

737 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