What specifically went wrong when you tried that?:
Traceback (most recent call last):
File “D:\YT\1\Psychopy_EEG_DemoBuilder\EEGDemo_lastrun.py”, line 108, in
p_port = parallel.ParallelPort(address=‘HDFF0’)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\parallel_inpout.py”, line 48, in init
_inp = self.port.Inp32(self.base + 0x402) TypeError: must be str, not int
Include pasted full error message if possible. “That didn’t work” is not enough information.
This seems as though it’s an issue with the port address and the inpout32.dll driver file:
p_port = parallel.ParallelPort(address=‘HDFF0’)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\parallel_inpout.py”, line 48, in init
_inp = self.port.Inp32(self.base + 0x402) TypeError: must be str, not int
I can see you’re running the 2021.2.3 version of PsychoPy, would you be able to update to the most recent version? There have been some improvements made to the accessibility of these drivers in the 2022 releases onward, and this could be causing your issue.
I would recommend that you download the latest version (2022.2.2) that you can download using the blue button here. Releases after this will also be bug-fix releases so I also recommend that you keep it up to date to ensure that you’re getting the best version possible.
When I tried the new version, I still got the following error:
Traceback (most recent call last):
Hello from the pygame community. Contribute - pygame wiki
1.5490 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
6.8749 WARNING User requested fullscreen with size [1280 720], but screen is actually [1440, 900]. Using actual size
C:\Program Files\PsychoPy\lib\site-packages\numpy_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
File “D:\YT\1\Psychopy_EEG_DemoBuilder\EEGDemo_lastrun.py”, line 118, in
p_port = parallel.ParallelPort(address=‘HDFF0’)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\parallel_inpout.py”, line 44, in init _inp = self.port.Inp32(self.base + 0x402) TypeError: can only concatenate str (not “int”) to str
Thanks for trying - can I just confirm that your parallel port address ‘HDFF0’ is the one shown when you navigate to: Device Manager (on your PC) > Ports > The port you’re using > Resources tab? I’ve known different systems require this address to be written in different ways, so it may need to be written slightly differently to when you ran in Eprime.
So, at least we’ve narrowed the issue down to the address of the port. What address is shown in the Resources tab of the port you’re using in the Device Manager?
Sorry, this was being discussed in 2 threads (please don’t do that) so I’ve closed the other one. Yes, to confirm, the address should be set to 0xDFF0 (make sure those are both zero, not capital O but it looks like they are).
Now that the address is correct, the question is why no markers are showing up and, for that, I’m stuck. I wonder whether the driver or some permissions are required. I assume this is a PCI-based parallel port not a USB adapter (that USB ones don’t work for anything).
In general, given the difficulties in debugging these devices when they don’t work, I’d recommend using a LabHackers USB2TTL8 which are portable (USB) easy to set up and still offer great timing.