Parallel port trigger problem with 64bit version of Opensesame
Hello dear fellows,
I've been unable to get Opensesame to send parallel port triggers since switching to version 3.3.6 (64bit , Python 3.7). Previously, using a 32 bit version (with python 2.7) everything had been working fine.
In both instances, this has been running on Windows 10 64 bit.
I was originally using the parallel port plugin, as per here: https://osdoc.cogsci.nl/3.3/manual/devices/parallel/
After installing the parallel port plugin in the 3.3.6 version of Opensesame, the experiment crashes on the parallel port initialisation with a message along the lines of "%1 is not a valid win32 application". It appears that this comes from trying to call inpout32.dll. I've checked and the path to this is fine and correct. I've tried reinstalling inpout32.dll and also tried using inpout64.dll (from the highrez download of inpout32.dll), by changing the code in the plugin to use this instead, but also to no avail. Apologies - I can't remember the error message this threw up.
I've also tried using the DLPortIO method instead (as per the link above) but this does not work either - it just yields the "The parallel port couldn't be opened" error message in the console.
I've temporarily reverted to the python 2.7 ver of Opensesame as at least this works, but I'd really like to get to the bottom of why it's not working with the 64bit version. Apologies if my description is a bit vague in places - I've lost access to the PC in questions (thanks, Covid!) so I'm having to recount this from memory.
If anyone has any suggestions, or has experienced this error themselves and found a solution, I'd be really grateful to hear from you.
Thanks in advance,
Neon
Comments
Dear Neon,
I solved in this way in win64. (7 or 10)
download http://www.highrez.co.uk/scripts/download.asp?package=InpOutBinaries
(on this page http://www.highrez.co.uk/downloads/inpout32/default.htm Download Links: il primo file the Binary only )
extract and put the file inputx64.dll in C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\parallel_port_trigger_init\
with notepad o notepad++ as administrator (right click dx - open as admin)
open the file parallel_port_trigger_init.py in the folder C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\parallel_port_trigger_init\
at line riga 117 e write inpoutx64 instead of input32, save
Done!
https://youtu.be/JOQ_tdpL7UM
Hi bilancino!
Thanks for your very quick reply. I was sure I had tried this, but I probably missed something along the way... I will do it again, properly ;-)
As soon as I have access to the PC again, I shall try this. Thanks for the youtube video too - proof that it works!
Best wishes,
Neon