Can't connect to Parallel Port

Hi,

I’m using PsychoPy version 1.85.2 to connect to the parallel port on my computer (Dell Precision T1700, 64-bit, running on Windows 7).

I’ve been trying to connect like this:

from psychopy import parallel
parallel.setPortAddress(address=0xD000)
parallel.setData(0)

But I get the following error:

Traceback (most recent last call):
File "C:\Users\lab\Desktop\Exp\Calibration.py", line 11, in <module>
parallel.setData(0)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\parallel\__init__.py", line 165, in setData
raise RuntimeError("Port address must be set using setPortAddress")
RuntimeError: Port address must be set using setPortAddress

I see from this thread that I might need to download the Inpout32.dll driver. Is it still true that Psychopy is 32bit? I wanted to clarify that before downloading the driver.

Thank you for the help.

Okay, I’ve placed the inpout32.dll driver in my scripts directory, and also changed my code:

from psychopy import parallel
    port = parallel.ParallelPort()
    print port

I no longer receive any errors, and the printed output is this:

<psychopy.parallel._inpout32.PParallelInpOut32 object at 0x179D28D0>

Is this confirmation that I am properly connecting to the parallel port, or do I need to do something else? I did not specify the parallel port address because I’m not sure what it is (even though most examples use address=0x0378, but I’ve seen others). Is there a way to look up the address?

There are various possible addresses. You need to look in your hardware device settings in control panel

But I think that output does indicate that the drivers are working