Hi,
I recently downloaded the PsychToolBox following the instruction found at http://psychtoolbox.org/PsychtoolboxDownload. I am looking to use PsychHID to control a filter wheel which is a HID compliant device. However, I am having problems getting PsychHID to run properly.
I can use PsychHID('Devices') and PsychHID('NumDevices') with no problem. Running PsychHIDTest I get the following error:
TestPsychHID
Making a list of all your HID-compliant devices. ...
You have 3 HID-compliant devices:
device 1: TBD, DELL, DELL USB Keyboard, 0 inputs, 0 outputs, serialNumber ?
device 2: TBD, S, , 0 inputs, 0 outputs, serialNumber ?
device 3: TBD, DELL, DELL USB Laser Mouse, 0 inputs, 0 outputs, serialNumber ?
Test 2 mice.
INTERNAL PSYCHTOOLBOX ERROR
error: PsychError_system
general description: Error reported by a system call
specific description: HIDLIB Failed to open USB device!
module name: PsychHID
subfunction call: GetReport
file name: Common\PsychHID\PsychHIDHelpers.c
function name: PsychHIDGetDeviceRecordPtrFromIndex
line number: 252
Error using PsychHID
See error message printed above.
Error in PsychHIDTest (line 125)
r = PsychHID('GetReport',di,1,0,8);
Could anyone explain what is happening and how to fix it?
I also cannot run usbHandle = PsychHID('OpenUSBDevice', vendorID, productID); and I get: 'Failed to open the specified type of generic USB device. Make sure it is plugged in or not already open." My device is plugged in but how do I check if it is already open and then close it?
I am running MATLAB R2014a version 8.3.0 64 bit on Windows 7.
Please let me know if I am missing information
Thank you!!!
I recently downloaded the PsychToolBox following the instruction found at http://psychtoolbox.org/PsychtoolboxDownload. I am looking to use PsychHID to control a filter wheel which is a HID compliant device. However, I am having problems getting PsychHID to run properly.
I can use PsychHID('Devices') and PsychHID('NumDevices') with no problem. Running PsychHIDTest I get the following error:
TestPsychHID
Making a list of all your HID-compliant devices. ...
You have 3 HID-compliant devices:
device 1: TBD, DELL, DELL USB Keyboard, 0 inputs, 0 outputs, serialNumber ?
device 2: TBD, S, , 0 inputs, 0 outputs, serialNumber ?
device 3: TBD, DELL, DELL USB Laser Mouse, 0 inputs, 0 outputs, serialNumber ?
Test 2 mice.
INTERNAL PSYCHTOOLBOX ERROR
error: PsychError_system
general description: Error reported by a system call
specific description: HIDLIB Failed to open USB device!
module name: PsychHID
subfunction call: GetReport
file name: Common\PsychHID\PsychHIDHelpers.c
function name: PsychHIDGetDeviceRecordPtrFromIndex
line number: 252
Error using PsychHID
See error message printed above.
Error in PsychHIDTest (line 125)
r = PsychHID('GetReport',di,1,0,8);
Could anyone explain what is happening and how to fix it?
I also cannot run usbHandle = PsychHID('OpenUSBDevice', vendorID, productID); and I get: 'Failed to open the specified type of generic USB device. Make sure it is plugged in or not already open." My device is plugged in but how do I check if it is already open and then close it?
I am running MATLAB R2014a version 8.3.0 64 bit on Windows 7.
Please let me know if I am missing information
Thank you!!!
Maaike