Parallel port control

N

newbie@VBA

Does anyone know how to read & write to the parallel port
from Excel 2000 VBA & Windows XP.
I want to control some home built hardware not a printer.
I need to read the port frequently (every 0.001 seconds).
High res.timer forms timing loop but can't find out how
to read from the port?.
 
J

Jonathan West

Hi newbie

There is unlikely to be any literature specific to VBA for this. However,
for general-purpose programming, the VBA language is almost identical to VB
as it was in VB5 & VB6, so VB articles on this subject should be helpful. A
Google search for VB and parallel port has revealed this article

Programming The Parallel Port In Visual Basic
http://www.aaroncake.net/electronics/vblpt.htm

There are other articles that can be found, but this was the first
relevant-looking one that I came across.
 
A

Alex Ivanov

For start this may work.

Dim x
Open "lpt1" For Input As #1
Line Input #1, x
Close
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top