By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,148 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,148 IT Pros & Developers. It's quick & easy.

the fastest reading from LPT port

P: n/a
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.
Sep 29 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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

Sep 29 '06 #2

P: n/a
On Fri, 29 Sep 2006 10:00:30 +0200, Nick Keighley
<ni******************@hotmail.comwrote:
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.
Sep 29 '06 #3

P: n/a
Przemysław Hołubowski wrote:
On Fri, 29 Sep 2006 10:00:30 +0200, Nick Keighley
<ni******************@hotmail.comwrote:
>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 ---
Sep 29 '06 #4

P: n/a
On Sat, 30 Sep 2006 00:53:04 +0200, Przemysław Hołubowski
<pr*****@wp.plwrote in comp.lang.c:
On Fri, 29 Sep 2006 10:00:30 +0200, Nick Keighley
<ni******************@hotmail.comwrote:
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
Sep 30 '06 #5

P: n/a
Przemys?aw Ho?ubowski said:
On Fri, 29 Sep 2006 10:00:30 +0200, Nick Keighley
<ni******************@hotmail.comwrote:
>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)
Sep 30 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.