Results 1 to 4 of 4

Thread: controlling parallel port with vb

  1. #1
    Registered
    Join Date
    Mar 2005
    Location
    USA
    Posts
    44
    Downloads
    0
    Uploads
    0

    controlling parallel port with vb

    I would like to make a vb program that has 8 click buttons on it. These buttons will corispond with the 8 outputs on a parallel port. What I want happen is for the pin to go high when the button is clicked. I would also like to have a button that controlles these buttons so that can be momentary or on and off. I have only begun vb but I can make the visual interface if you guys can help me with the code. Any ideas or has anyone made a program like this? Please let me know.


  2. #2
    *Registered User*
    Join Date
    Feb 2006
    Location
    Netherlands
    Posts
    77
    Downloads
    0
    Uploads
    0
    Have you tried Google "Parallel port driver Visual Basic"? More than enough food for research I think.

    Carel


  3. #3
    Registered WayneHill's Avatar
    Join Date
    Mar 2004
    Location
    Michigan
    Posts
    779
    Downloads
    0
    Uploads
    0
    http://www.lvr.com/

    http://www.logix4u.net/inpout32.htm

    You are looking for a VB program that uses the 'Input32.dll' interface to access the LPT port. There are many issues relating to direct access to the LPT port through Windows. Do some homework and these issues will show up on several websites.
    Wayne Hill


  4. #4
    Registered
    Join Date
    May 2004
    Location
    United States
    Posts
    457
    Downloads
    0
    Uploads
    0
    What Wayne says. I use hwinterface.ocx and set pins with this format:

    Hwinterface1.OutPort CommandPort, HexNum '/where HexNum is the hex number of the pin(s) you want on/off. There's also a DataPort param that let's you up characters to an LCD, for example. And it works with XP too.

    JR


Posting Permissions


 


About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.