1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development Parallel Port In VB

Discussion in 'Software' started by Stealthrt, 14 Feb 2003.

  1. Stealthrt

    Stealthrt What's a Dremel?

    Joined:
    16 May 2002
    Posts:
    158
    Likes Received:
    0
    Hey all, i need to find out how to send 8 bit word to the the Parallel Port In Visual Basic. I am controling a relay board with 8 relays on it and i need to be able to turn them on and off. Cant really get anything working so if someone has done this or has examples of it, that would be great to see!


    Thanks for your time,
    David:eyebrow:
     
    Last edited: 14 Feb 2003
  2. TheBigBad

    TheBigBad What's a Dremel?

    Joined:
    4 Aug 2002
    Posts:
    2
    Likes Received:
    0
    Have you tried dlportio?

    Try googling for it. It includes a example programm with source for both c++ and VB
     
  3. [DP]Deus

    [DP]Deus What's a Dremel?

    Joined:
    18 Feb 2003
    Posts:
    7
    Likes Received:
    0
  4. Fowler

    Fowler mmm Cosworth

    Joined:
    20 Nov 2002
    Posts:
    1,297
    Likes Received:
    0
    I dunno about u but id recommend trotting down to the local library and getting a VB book out, maybe you could buy one?

    Ud be suprised how much ul learn from em!

    Ive only just started learning VB and im finding the book I have very very useful!

    :D
     
  5. eaterofpies

    eaterofpies What's a Dremel?

    Joined:
    12 Feb 2002
    Posts:
    1,745
    Likes Received:
    0
    if yer using an nt based os u will need dlportio
     
  6. djengiz

    djengiz Pointless.

    Joined:
    16 Aug 2002
    Posts:
    1,129
    Likes Received:
    0
    Why use the paralel port? Can u use the serial?
     
  7. eaterofpies

    eaterofpies What's a Dremel?

    Joined:
    12 Feb 2002
    Posts:
    1,745
    Likes Received:
    0
    yeah sure u can use serial BUT the hardware is about 80 times more complex
     
  8. djengiz

    djengiz Pointless.

    Joined:
    16 Aug 2002
    Posts:
    1,129
    Likes Received:
    0
    Sorry man....... Its just that i have written a component in C++ that is easy to configure and to use from vb
     
  9. eaterofpies

    eaterofpies What's a Dremel?

    Joined:
    12 Feb 2002
    Posts:
    1,745
    Likes Received:
    0
    no worries its just for interfacing to the outside world the parallel port is a piece of **** to use because all of the timing is done in the pc where the serial port u need to set data rates etc then u still need to decode the data on the other end (and buffer it)

    might do some work on serial interface at some point when i have money to buy electronics stuff again :(
     
  10. WildMan

    WildMan Guest

    This matter has been settled. Thanks to all who helped.

    David
     
  11. x24

    x24 What's a Dremel?

    Joined:
    9 May 2002
    Posts:
    381
    Likes Received:
    0
    this is my first post in a long long while. :D

    Anyway, try this link: http://uppercanadatechnologies.bizland.com/Customcontrols.html

    It's a VB OCX giving you control over the dreaded parallel port. I've used it and it's so easy, especially with what you want to do. Hope that helps :) BTW, if they charge you for it, sorry. It has been years since I got the OCX, and at the time, it was free.
     

Share This Page