Hello, I’m new to PsychoPy and python!
I have a reaction time task where participants respond to a target as quickly as possible. I need to set the target duration in the second block of trials to the mean RT from the first block, and also vary this duration for each trial within the std RT from the first block of trials.
I’ve calculated the running mean and std RT (from upper mean RT) from block 1 and have set the target duration to this mean RT by entering $meanRT in stop duration in the builder:
I’m stuck on how to make this duration vary trial by trial within the std RT, but am thinking I need to insert a code component before the target? Any help on the code needed for this would be much appreciated.
Thank you very much!