473,809 Members | 2,780 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2821
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.plw rote 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.program mer.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.l earn.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
2760
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 thinking of having two threads, one for reading from the port and one to write to the port. The whole purpose of doing this is to support the MAGTEK Pin Pad peripheral device on a Browser. The device is connected to the COM5 port and it simulates...
11
408
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 fastest? I don't think the ReadXMLSchema would give a lot of difference, but maybe the overlaods of ReadXml and WriteXml will. Especially with larges files/datatables... Should I use the IO.Stream? The XmlReader/XmlWriter?
0
1382
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 line, in a text file. I'm interested in one of six messages, but I don't think there's any guarantee in the ordering of the messages. Each message is identified by the first six characters in the line.
11
3628
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 million lines. b) I need to store the contents into a unique hash. c) I need to then sort the data on a specific field. d) I need to pull out certain fields and report them to the user.
21
13115
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 server is on one line (\r\n at end) and is formed as - each of which is seperated by a space. Arguments with spaces in them are enclosed in quotations. So, I'm able to open a connection to the server. When I send a message to
1
1245
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
50277
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 int, unsigned long int), what is the fastest? using the modulo operator
9
14404
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, "That's easy, there's a lot out there, Google it,", 1 is a discussion on it without examples and the other is who knows what. I did find some info on it and have been experimenting. The one example that I liked the best in terms of...
0
2329
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 application which communicates via HTTP Request using HTTPListener/HTTPWebRequest. The server(which is the focus of my question) will be having different modules. I want these modules to communicate with each other using the fastest IPC but I can't figure...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10640
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.