Solved

URGENT Reading Data at very high speed from LPT port

Posted on 2004-03-23
8
239 Views
Last Modified: 2011-09-20
I need to read data from a bycicle-trainig-computer that is transfered via LPT port.
Unfortunatly i do not get much information from the one that has build the hardware.
Only the following:

Pin 13 Cadence (Tretfrequenz)
Pin 10 Power (Drehmomentfrequenz)
Pin 15 und 19 Masse und Schirmung
The computer sends continous as soon as it is on

I already have tried TVicLPT from EnTech (http://www.entechtaiwan.com/dev/lpt/) but looks like i don't understand it enough ... :-(

What i like to get is some sort of sourcecode with a little sample application.
If you need more points ... just ask.
0
Comment
Question by:SoftDS
  • 3
  • 2
  • 2
8 Comments
 
LVL 8

Accepted Solution

by:
Cesario earned 500 total points
ID: 10668014
Dear Dominique,

   LPTStatus lesen ( 8bit )
   3 Bit gesetzt dann ist Pin 15 High
   4 Bit gesetzt dann ist pin 13 High
   6 Bit gesetzt dann ist Pin 10 High
   Da pin 13,10 und 15 Statusleitungen sind,  kannst du von dort keine Wert lesen.;-(
   Du musst dann Impulse pro Sekunde zählen bzw. schätzen ( Timer alle 2 ms die Datenleitung checken und ein bischen Mathe hast du das Ergebnis )


Best Regards

Cesario  
0
 
LVL 1

Author Comment

by:SoftDS
ID: 10668571
Hi Cesario,

reading all 2ms is not enough. I need at last 100 samples every ms.

Vor allem muss die Zeit zuverlässig sein. Das heisst immer genau gleich viele
Werte alle x-millisekunden.

...übrigens ... wo steckst du jetzt eigentlich?

Greetings
Dominique
0
 
LVL 3

Expert Comment

by:JDuncan
ID: 10668734
There is a good 32 bit parallel port driver at www.specosoft.com
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:SoftDS
ID: 10668896
The specosoft driver did not work on my Win2K Prof.
There is not much information about why. Just telling driver could not be loaded.

0
 
LVL 8

Expert Comment

by:Cesario
ID: 10669164
With the API Function QueryPerformanceCounter() and QueryPerformnaceFrequency() you can get a create  µS timer.
but this will slow down you system.

Grüsse aus Hamburg
0
 
LVL 8

Expert Comment

by:Cesario
ID: 10677646
Hallo Dominique,

betr. TretFreq:

Die maximale Tretfreq für die Bewohner des blauen Plantes liegt bei 280 U/Min. Bei Trainings liegt sie meist bei 60-90 U/min
Bei dieser max. Tretfreq. erwartet man also alle 240ms einen Impuls. Also benötigtst du keine 100 Messungen pro ms.

Auf der anderen Seite ist es wichtig herauszufinden wie lange pin13 auf high geschaltet wird wenn ein Impuls gefeuert wird..
Entweder eine kleines Diagrammbasteln und die Werte anzeigen lassen oder einen ossi verwenden.

Grüsse

Ces

0
 
LVL 3

Expert Comment

by:JDuncan
ID: 13191569
The specsoft driver has a problem loading if you are running from a network drive - try running from your C drive.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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