Teensy BoxInspired by the excellent Wiki page of the Stanford university and the pages of Chris Rorden's Neuropsychology Lab Chris Rorden's Neuropsychology Lab we built our own Teensy Boxes to convert the TTL signals from the MR scanner and the response to a more useful one. Via USB cable the Teensy Box is connected with your stimulus PC / Laptop and will be recognized as USB HID keyboard without driver installation (Windows, Mac OS, Linux). We use a Teensy board programmed using a simple teensyduino sketch. All variants listen for input pulses from the MR scanner and for pulses from the response buttons. The input is converted to keyboard events:
7T MagnetomThe Teensy Box at the 7T (Siemens) only has the standard features. 3T Achieva dStreamThe Teensy Box at the 3T Achieva dStream (Philips) has an LCD display, an SD card slot and a rotary knob. Please hold the knob and plug in the USB cable to enter the configuration menu. In the menu you can choose the 'Covilex type':
'Save settings' will save the actual settings permanently in the EEPROM. 'QUIT' will use the current settings. After restart the saved settings will be used.
The acquisition of the dynamic data will wait for the first MR trigger. To simulate a trigger, push the button. The button will also start the simulation in simulation mode. To stop the acquisition / simulation, push the button again. During the experiment the trigger and responses are displayed and counted. In case of dynamic data, the response is plotted in real time. Emulation of parallel portThe Teensy Box can emulate a parallel port to send event codes to other modalities (e.g. EEG) via serial port. To use this feature you need a driver for your OS. This feature is only available in Covilex 1.x mode. Disconnect the Covilex 2.x Box and connect the D-SUB 25 cable with e.g. your EEG system. Enable 'EV code' (1) in the configuration menu. Configure your software to use the serial port as output port (Linux: /dev/ttyACM0. Windows: our stimulation PC: COM9) Any event code will now send to the parallel port with a default speed of 2 kHz. Recording button press duration / FlipFlop optionFor measuring button press duration the menu option "FlipFlop" has to be set to 1. This will enable recording both button press and release with two separate events. FlipFlop option
See table below for detailed event codes.
Using PsychtoolBox under LinuxFor using the TeensyBox as keyboard device in PsychtoolBox, please use USB-ID 6, as shown exemplary in source code snippet below: [keyboardIndices, productNames, allInfos] = GetKeyboardIndices; deviceid = keyboardIndices(6); productNames{6} KbQueueCreate(deviceid); Other sitesDZNE Magdeburg: VerioWe built a Teensy Box for the 3T Verio (Siemens) at the DZNE in 2013. It has the standard features and a button to simulate a trigger. DZNE Magdeburg: TMSWe built a Teensy Box for the Transcranial magnetic stimulation system at the DZNE in 2014. Any event code sent via serial port by the stimulation software will produce a TTL signal. Each TTL signal triggers a TMS pulse. Umeå University, Sweden: 3T GEWe built a Teensy box for a 3T GE scanner to convert the MR trigger in 2014. Institute for Neurology, Magdeburg: 3T PrismaWe built a Teensy Box for the 3T Prisma (Siemens) similar to the Verio version without button in 2014. Magdeburg: 3T SkyraWe built a Teensy Box for the 3T Skyra (Siemens) similar to the Verio version in 2015. |
||||||||||||||||||||||||||