1x12 struct array with fields:
usagePageValue
usageValue
usageName
index
transport
vendorID
productID
version
manufacturer
product
serialNumber
locationID
interfaceID
totalElements
features
inputs
outputs
collections
axes
buttons
hats
sliders
dials
wheels
Yay. I found a USB-1608FS daq! Serial number is: 01243F66
Direct your attention to the LED on the device and then click the "okay" button here:
Press any key to continue.
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: SetReport
file name: Common/PsychHID/PsychHIDHelpers.c
function name: PsychHIDGetDeviceRecordPtrFromIndex
line number: 250
PTB-INFO: Display ':0' : X-Screen 0 : Assigning primary output as 0 with RandR-CRTC 0 and GPU-CRTC 0.
Error using PsychHID
See error message printed above.
Error in DaqBlinkLED (line 36)
err=PsychHID('SetReport',daq,2,reportId,TheReport); % Blink LED
Error in DaqTest (line 85)
err=DaqBlinkLED(daq);
Yay. I found a USB-1608FS daq! Serial number is: 01243F66
Direct your attention to the LED on the device and then click the "okay" button here:
Press any key to continue.
Did the LED just blink for you?
0 = No
1 = Yes
Choose your answer:
Please click yes or no... do not close the window any other way!
Press any key to continue.
Did the LED blink for you earlier?
0 = No
1 = Yes
Choose your answer: 1
** If you want to run all the tests we have here, you should connect analog
** port 0 (pin 1) to the first bit of the digital port (pin 21). If you would
** like to test your counter, you should also connect pin 21 to the counter
** terminal (pin 38). Measurement Computing recommends that you ground any
** analog ports that you are not using. To follow that advice, connect pin 3
** to pin 4, pin 5 to pin 6, pin 7 to pin 8, pin 9 to pin 10, pin 11 to pin 12,
** pin 13 to pin 14, and pin 15 to pin 16.
A lot of information will be written to the Matlab command window. You can ignore most of it, but you should look at the command window now.
Press any key to continue.
Moving on to test mode changes...
Successfully toggled sync status bit. Moving on...
Successfully toggled trigger status bit. Moving on...
Successfully toggled program status bit. Moving on...
The following tests assess all the USB-1608FS commands, reporting any errors.
** DIGITAL COMMANDS
** DaqDConfigPort, DaqDIn, and DaqDOut.
DaqDConfigPort: configuring digital port for output.
DaqDOut: random test patterns on DIO port. This is a basic functionality
test, showing that we can indeed read back what we wrote.
DaqDOut: 208.
DaqDIn: reading digital port.
DaqDIn: 208.
Data read matches data written. Excellent!
About to test ability to configure, read, and write individual bits...Error using bitcmp
BITCMP(A,N) does not accept integer valued input N. Use BITCMP(A,ASSUMEDTYPE)
instead.
Error in DaqTest (line 563)
fprintf('\nTwo''s complement of randomly chosen value: %d\n',bitcmp(a,8));