Originally posted March 20th, 2019. Background In an earlier post we used a MilliKey response box to test the time stamping accuracy of three different Python accessible keyboard event APIs when receiving 1000 Hz MilliKey USB keyboard events: psychopy.event.getKeys() psychopy.iohub…keyboard.getPresses() Psychtoolbox Python PsychHID() and found that Psychtoolbox PsychHID Python interface provided the most accurate keyboard event time stamps across… Continue reading PsychoPy3 PsychHID based Keyboard API
Originally posted on Marth 11th, 2019. I spent some time last weekend using the MilliKey response box to test the keyboard event time-stamping accuracy of the PsychToolbox3 PsychHID library written by Mario Kleiner. Given my love of Python, I had to try out the psychtoolbox Python wrapper of PsychHID and compare it to psychopy.event.getKeys() and psychopy.iohub keyboard.getPresses(). This… Continue reading PsychHID Rules!
Originally posted on February 27, 2019. As discussed in my last post, the LabHackers’ MilliKey button box includes the ability to generate 1000 Hz USB keyboard events after receiving a KGEN serial command. (BTW, the USB2TTL8 also supports the KGEN command.) One of the main uses of the KGEN command is to test keyboard event timing from within your experiment… Continue reading Testing PsychoPy event.waitKeys() Event Timing
First posted February 27, 2019. LabHackers’ MilliKey and USB2TTL8 devices can generate a USB Keyboard event after receiving a USB serial command from the software it is connected to. This post explains the LabHackers’ KGEN command and illustrates how to use it in a simple Python script. KGEN Serial Command Both the MilliKey and USB2TTL8… Continue reading Generating Keyboard Events using MilliKey USB Serial Commands