Thread: I/O library

  1. #1
    Registered User
    Join Date
    Oct 2006

    I/O library

    Hi all.

    I'd like to use my laptop and software to control a robotics project. To do this, I'd like to be be able to set individual pins on my printer port (or other peripheral) to logic high or low at will, preferably with c++.

    Is there an way to do this? I hope to avoid writing custom hardware drivers. I was hoping that someone here knows of a library which will enable me to easily do this.

    Thanks a lot.

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Assuming Windows on a PC...

    You can try PortTalk from I've never tried it myself, but I do know that Windows prevents user mode programs from directly reading/writing to a hardware address. You can open a serial port like you open a file, but I don't know if this "trick" works with the parallel port. CreateFile()
    Last edited by DougDbug; 10-09-2006 at 01:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  2. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 07:42 AM
  3. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  4. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 01:28 PM
  5. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM