Error in KbQueueCreate (Psych Toolbox), ---.mexw32 is not a valid Win32 application

3 views (last 30 days)
I put the Psych toolbox onto my 64-bit computer and had no issues using the KbQueueCreate command to start reading key inputs, however when I moved this code to my 32-bit machine I got the error "Initial invocation of the PsychHID mex file failed. Invalid MEXfile 'C:\toolbox\Psychtoolbox\Psychbasic\MatlabWindowsFiles2007a\PsychHID.mexw32 is not a valid Win32 application" I get this error even while only running the KBQueueCreate command.
I tried moving the libusb-1.0dll file from the PsychContributed folder into my C:\Windows\System32 folder. Also, I used Dependency Walker as the website suggested, and found that ICUU24.DLL, LINMEX.DLL, LIBUT.DLL and LIBZ.DLL all had errors opening the files, the system cannot find the file specified. I'm not sure how to fix this problem and any help would be appreciated. Thank you!
  1 Comment
matt schalles
matt schalles on 21 Mar 2015
Did you ever find a solution? I'm encountering this same error trying to get a collaborator's script to run.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!