Skip to content
Douwe Horsthuis edited this page Feb 28, 2024 · 4 revisions

This script redoes some of the previous script, but then for reaction times. As you might be intrested in slightly different times we save everything with _RT. But you can of course use the same input as during the previous script. One thing that needs to be different, is that you need to use een RT binlist. This can be as simple as replacing the butten press part of your bin. For example, lets say your bin is something like {10;11}.{1} (meaning you want to see the ERP that happens after trigger 10 or 11 happens but it needs to be followed by a button press). To do reaction times you want to look at the reaction time not at the end of the trigger, but before. Because the participant can start pressing as soon as the stimulus shows up. Besides the onset (which is the period) you also want to change the buttenpress. Now it's a simple trigger, but if it needs to be a RT you need to add trigger#:RT. So you RT bin would look like .{10;11}{1:RT<"nameofyourbin">} See this for more info

At the end, we adds all the RTs together in an excel file and a matlab file. This file Contains 4 columns with the IDs,group,Condition,RTs of each particpant. The script requires that the .erp file has been created using a binlist that stores reaction times. We use the pop_rt2text function that comes with ERP lab. Click here for the repo with the original code. We also save a quality file, just so you can see how many trials are left.

Back to the home page
Back to the E_epoching page
To the G_grandmeans page

Clone this wiki locally