Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] usb to parallel port

edited December 2012 in OpenSesame

Dear Opensesame developers and python experts

Does anyone now how to use a usb to paralel port device for sending triggers under python with Opensesame. Unfortunately, the pyserial and the pyparellel do not support USB paralel port devices.

See http://pyserial.sourceforge.net/pyparallel.html

Best

Tas

Comments

  • edited 10:37PM

    Hi Tas,

    My guess is that the USB-to-parallel port will not work any differently from a regular parallel port, in which case you could simply follow the instructions here: http://osdoc.cogsci.nl/miscellaneous/sending-triggers-eegerp

    Good luck!

    Cheers,
    Sebastiaan

  • edited 10:37PM

    Dear Sebastiaan

    As also mentioned on the website of pyserial, I think the problem is the port io number the usb to LPT device. As it is a printer port emulator I can not find a port number as required in the given python script ( e.g. port = 0x378)

    Best

    Tas

  • edited 10:37PM

    Indeed, it states:

    The giveio driver must be installed as the module needs direct access to the hardware. This also means that USB parallel port adapters won’t be supported.

    But ... this refers to pyparallel / giveio, and perhaps the same restriction does not apply dlportio.dll and/ or inpout32.dll (although it may, of course). Unfortunately, I don't know of anyone who has tried to interface with a USB-to-parallel device, so you are more-or-less on your own here. Perhaps Google has something to say about USB + dlportio.dll or USB + inpout32.dll?

    If you manage to resolve this issue, I would love to know so we can add this to the documentation. I imagine more and more people will starting using USB-emulated ports. (Although I honestly don't understand why the parallel port is still used at all, emulated or no. It's nothing but trouble.)

    Good luck!

  • edited 10:37PM

    Hi,
    I'd like also to go through the USB. If you find a solution, please share !

    I manage to obtain a trigger using an old computer with a parallel port. I use the parallel_port_trigger plug-in.
    But I had a problem. Everything was running but I wasn't seeing the trig. After some extensive search, I found a small soft called LPTTestUtility. It allows to see the LPT and to try to reach it. I discovered that the address of the port was not good. Instead of 0x378, my port was at 0x3BC.
    Perhaps you have a similar problem.

    http://lpt-port-test-utility.software.informer.com/

Sign In or Register to comment.