Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

URGENT Reading Data at very high speed from LPT port

Posted on 2004-03-23
8
Medium Priority
?
245 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 1000 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

886 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