-
Parallel Port
HI,
I make a software that will control a door through the paraller port. I would like through my software to be able to the different paraller port pins, i,e, set them to HIGH or LOW whenever I want to.
Any ideas how can I manage that? Can you please provide me with some code example?
Thanks a lot!
H.
-
Thanks for your reply.
Can you please send me some code examples for Visual Basic, i.e. how to put a specific pin HIGH or LOW?
Thanks a lot!
H.
-
Well, lets say you have 3 pins that you're using. The address that they're at (Parallel port is &3F8 or something like that) can be assigned a byte value (8 bits). Therefore, you can control the first 3 bits by assigning this value:[Highlight=VB]Value = Pin1 + Pin2 * 2 + Pin3 * 4[/vbscript]
-
that can be done without any IO dll?
-
Someone said you can use the Print function using LTP1: as the file. I haven't tried it, however.
-
To control the individual LPT lines you really should use the dll, it's not possible with VB. You also can't control the serial ports using VB!
-
hmm well yeah but I could write to it as much as I want right?
pretty interesting..
-
:D
I've made a remote control for my computer - using parallel port. I used WIN95IO.DLL in making it.
The software can be downloaded here (if geocities allows direct links): LPT Remote Control Manager
and if you'd like to see som pics of my new piece of hardware... check out this
PS. a pic of the finished remote control is still yet to come... and the main site is under construction, but I'll put in instructions of making an remote control ;) ;) ;)
-
WIN95IO also does the thing right. I'm not sure if it works fine with Windows NT.
Using VB, we always can access the output data lines (for LPT), but not the inputs. Concerning the COM ports, using the VB communications control we can use some more serial registers, but not all of them. For that: use the dll.