473,414 Members | 1,643 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

the fastest reading from LPT port

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
5 2798
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jaywant Dharwadkar | last post by:
We are developing a Web application on J2EE platform and require to support cetain peripheral devices such as MAGTEK PinPad and Card Swipe (http://www.magtek.com/) connected to a PC port. I am...
11
by: DraguVaso | last post by:
Hi, I should use XML to synchronize the data from different (VB.NET) applications, and I was just wondering which Overloads of these functions ( ReadXmlSchema, ReadXml and WriteXml) goes the...
0
by: Einar Hřst | last post by:
Hi, I'm reading data from a text file, and having read a bit on performance and memory, I'm wondering how it could be done in the fastest, most frugal way. The data comes in messages, one per...
11
by: hoopsho | last post by:
Hi Everyone, I am trying to write a program that does a few things very fast and with efficient use of memory... a) I need to parse a space-delimited file that is really large, upwards fo a...
21
by: JoKur | last post by:
Hello, First let me tell you that I'm very new to C# and learning as I go. I'm trying to write a client application to communicate with a server (that I didn't write). Each message from the...
1
by: Jim Hubbard | last post by:
I want to do driver development and activeX creation......what would you suggest as far as the best/fastest path to learning C++ for these tasks?
6
by: Klaas Vantournhout | last post by:
Hi, I have a question, which is just out of interest. What is the fastest way to do an odd/even check with c++ and if needed assembler. Assume n is an unsigned integer like type (unsigned...
9
by: Hal Vaughan | last post by:
I've done a fair amount of Googling for information on reading the serial port in C++ (and in Linux). Unfortunately, out of every 4 hits, 1 seems to be an unanswered question, 1 is someone saying,...
0
by: dantz | last post by:
After reading all of the materials in msdn about interprocess communication now I am confused. I hope someone can give me some enlightment. I am developing a multithreaded client-server...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.