Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > the fastest reading from LPT port

Reply
Thread Tools

the fastest reading from LPT port

 
 
p.h.
Guest
Posts: n/a
 
      09-29-2006
Hi!

I am trying to read LPT's data port as fast as possible. I know that
Digitrace (link to the program below) achieves 750kS/s, but my program
achieves only 280kS/s. My program is written in VB.NET 2005, although I
wrote it in C too. Speed is the same in both cases. Assembler is faster
- it gains 480kS/s. I am wondering how it is possible to read LPT's data
port faster? At least as fast as Digitrace does. Maybe you could help me?

VB.NET and C version of my program use Inpout32.dll, assembler version
GiveIO (allowio). Digitrace uses GiveIO.

Link to Digitrace:
http://www.xs4all.nl/~jwasys/old/diy2.html
--
best regards,
p.h.
 
Reply With Quote
 
 
 
 
Nick Keighley
Guest
Posts: n/a
 
      09-29-2006
p.h. wrote:

> I am trying to read LPT's data port as fast as possible. I know that
> Digitrace (link to the program below) achieves 750kS/s, but my program


<snip>

the C standard recognises neither "LPT" nor "Digitrace" you need to
post
to a news group where this is topical. Maybe a Microsoft ng?

--
Nick Keighley

 
Reply With Quote
 
 
 
 
=?iso-8859-2?B?UHJ6ZW15c7NhdyBIb7N1Ym93c2tp?=
Guest
Posts: n/a
 
      09-29-2006
On Fri, 29 Sep 2006 10:00:30 +0200, Nick Keighley
<(E-Mail Removed)> wrote:

> the C standard recognises neither "LPT" nor "Digitrace" you need to
> post to a news group where this is topical. Maybe a Microsoft ng?


But standard C recognises "_inp()" or "inport()"...
--
p.h.
 
Reply With Quote
 
Joe Wright
Guest
Posts: n/a
 
      09-29-2006
Przemysław Hołubowski wrote:
> On Fri, 29 Sep 2006 10:00:30 +0200, Nick Keighley
> <(E-Mail Removed)> wrote:
>
>> the C standard recognises neither "LPT" nor "Digitrace" you need to
>> post to a news group where this is topical. Maybe a Microsoft ng?

>
> But standard C recognises "_inp()" or "inport()"...
> --
> p.h.


I haven't come across it. Can you provide Chapter and Verse?

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
 
Reply With Quote
 
Jack Klein
Guest
Posts: n/a
 
      09-30-2006
On Sat, 30 Sep 2006 00:53:04 +0200, Przemysław Hołubowski
<(E-Mail Removed)> wrote in comp.lang.c:

> On Fri, 29 Sep 2006 10:00:30 +0200, Nick Keighley
> <(E-Mail Removed)> wrote:
>
> > the C standard recognises neither "LPT" nor "Digitrace" you need to
> > post to a news group where this is topical. Maybe a Microsoft ng?

>
> But standard C recognises "_inp()" or "inport()"...


No, it does not. Neither function is part of the standard C library.
They are non-standard extensions provided by your compiler. Take this
a Windows group like news:comp.os.ms-windows.programmer.win32. It's
off-topic here.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
 
Reply With Quote
 
Richard Heathfield
Guest
Posts: n/a
 
      09-30-2006
Przemys?aw Ho?ubowski said:

> On Fri, 29 Sep 2006 10:00:30 +0200, Nick Keighley
> <(E-Mail Removed)> wrote:
>
>> the C standard recognises neither "LPT" nor "Digitrace" you need to
>> post to a news group where this is topical. Maybe a Microsoft ng?

>
> But standard C recognises "_inp()" or "inport()"...


It does? C&V please.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DMA for LPT port Dave Hardenbrook A+ Certification 2 01-17-2008 02:23 AM
Windows XP problem, how to print some data to printer connected on LPT port? max Perl Misc 1 03-08-2007 11:12 PM
Fastest 5 mp Digital Camera ? Fastest 4 mp Digital Camera? photoguysept102004@yahoo.com Digital Photography 6 10-28-2004 11:33 AM
how read from LPT port? PHP2 C++ 2 06-30-2004 07:45 PM
Accessing Com- and LPT-Port with ASP.NET Gerald ASP .Net 1 06-27-2003 12:20 AM



Advertisments