>> PsychtoolboxVersionans =
3.0.9 - Flavor: beta - Corresponds to SVN Revision 2352
~~~~~~
Running on Windows XP 32bit OS. Running Matlab R2009a.
Brand new to PTB, and I'm trying to interface to an expandIO board
http://www.firmwarefactory.com/expandIOUSB.aspx
>> PsychHIDTestTestPsychHID
Making a list of all your HID-compliant devices. ...
You have 2 HID-compliant devices:
device 1: TBD, Dell, Dell USB Keyboard Hub, 0 inputs, 0 outputs, serialNumber ?
device 2: TBD, expandIO-USB, Firmware Factory Ltd, 0 inputs, 0 outputs, serialNumber Prototype Board
~~~~~~
So, PsychHIDTest can see the board (device 2).
I was trying to get the Firmware ID, report 0x94 (148), as a simple test.
Here's what I've tried, and what I get:
>> [report,err]=PsychHID('GetReport', 2, 1, 148, 4)report =
0 0 0 0
err =
n: -1
name: 'The supplied user buffer is not valid for the requested operation.'
description: 'The supplied user buffer is not valid for the requested operation.'
reportLength: -1
reportTime: 9.7406e-286
~~~~~
similar for ('GetReport', 2, 2, 148, 4)
~~~~~
>> x=uint8([148,0,0,0,])ans =
>> PsychHID('SetReport', 2, 1, 0, x)
n: -1
name: 'The supplied user buffer is not valid for the requested operation.'
description: 'The supplied user buffer is not valid for the requested operation.'
~~~~~
similar for ('SetReport', 2, 2, 0, x)
~~~~~
>> PsychHID('SetReport', 2, 1, 148, x)ans =
n: -1
name: 'The parameter is incorrect.'
description: 'The parameter is incorrect.'
I've also tried USBControlTransfer (remember, mine is the second device):
>> devices.vendorIDans =
16700
ans =
2880
>> devices.productIDans =
8198
ans =
306
>> handle = PsychHID('OpenUSBDevice', 2880, 306)Error in function OpenUSBDevice: Usage error
Failed to open the specified type of generic USB device. Make sure it is plugged in or not already open.
PTB-INFO: Multi-display setup in explicit multi-display mode detected. Using the following mapping:
PTB-INFO: Screen 0 corresponds to the full Windows desktop area. Useful for stereo presentations in stereomode=4 ...
PTB-INFO: Screen 1 corresponds to the display area of the monitor with the Windows-internal name \\.\DISPLAY1 ...
PTB-INFO: Screen 2 corresponds to the display area of the monitor with the Windows-internal name \\.\DISPLAY2 ...
~~~~~
So, what am I missing? If you need a tester for the PsychHID windows side, I'm can do that.