Results 1 to 9 of 9

Thread: Parallel Port

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    49

    Angry 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.

  2. #2

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    49
    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.

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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]
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    that can be done without any IO dll?
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Someone said you can use the Print function using LTP1: as the file. I haven't tried it, however.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553

    Talking

    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!

  7. #7
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    hmm well yeah but I could write to it as much as I want right?
    pretty interesting..
    Sanity is a full time job

    Puh das war harter Stoff!

  8. #8
    Member FinnPanther's Avatar
    Join Date
    Jun 2001
    Location
    Finland
    Posts
    53


    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
    -Panther

    Panther's HQ

  9. #9
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width