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
Tag: USB Serial
Testing Round Trip USB Serial Latency using Python
Originally posted February 26, 2019. One important consideration when using a 1000 Hz USB Serial device interface is the delay from when a Serial message is sent to the device to the time when the Serial reply is received by the program. We call this the round trip, or end to end, USB Serial latency… Continue reading Testing Round Trip USB Serial Latency using Python
Detecting LabHackers’ Serial Port Addresses using Python
First posted February 26, 2019 LabHackers’ MilliKey and USB2TTL8 devices have a USB Serial interface that is assigned a unique address by the operating system the first time the device is connected to a computer. The LabHackers’ Device Manager application can be used to view the serial port address assigned to a device. However, the… Continue reading Detecting LabHackers’ Serial Port Addresses using Python