Urgent!! How to read data from the parallel port and time the reading.

I have no experience with VB so any details would be very appreciated. My question is how to read a signal from the parallel port and use a PRECISE timer that starts when a certain signal is read and stops when that signal is read again. When I say precise I mean that I would like the precision on the timer to be up to 1/100th of a second. Please, this is urgent. Thank you
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you should be doing this in vc++...
however ... you can use the timer control... it has a resolution of 55 ms ..

and to read from the parallel port... use the follwing...

Download the following file..

and use the funcation vbOut and vbInp to write data to the parallel port...
this shoudl be pretty straight forward...

if you require more give me until the weekend... I did a project in college on this and I give you the exact code to write bits to the parallel port and read from it too... :)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Open "LPT1:" for input as #1
strPortData = input(1, #1)

Timer1.Enabled = true

You can open the parallel port using #1 above to get a character.  (I don't recall if you need this in a loop-until-data-found or if it hangs until data is received.)

The timer control has resolution in the milliseconds (1/1000.) However, unless this has changed, I think it only went down to 57/1000.  If you want more resolution you can user the Timer API call.

After setting the timer, close your port and continue.  Are you then going to loop back?  Or are you simply going to read one more?  For the first, you probably need to set some flags or a counter so you can track the previous values.
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.