| Reference | Downloads | Github

Feedback at the end of the block

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Mac
PsychoPy version (e.g. 1.84.x): v.1.84.1


I’m trying to build an experiment where I have 4 different conditions. In one block all stimuli in each condition are presented randomly and after each, participants receive an RT.

What I’m wanting to do is based on participants RTs, I want each condition to be calculated separately and the mean RTs to be presented as feedback to the participants after the first block.
I’m just not sure what code to put, or how to get this done. There’s no error message that shows up but at the same time, it doesn’t work.

Thanks for the help.

OS: Win 7
PsychoPy v1.84.2

Has anyone successfully put feedback at end block?

I’m using this recipe:

But I can’t get the first line of code to work:[‘key_resp.keys’] #numpy array with size=[ntrials,ntypes]

Where should this code component go?


Give us a clue about what way it doesn’t work

Thanks for getting back to me- I don’t have a record of the error messages but think they meant psychopy didn’t recognise the term (tried putting the code in all different boxes of the code component).

However- I found a really useful post on here that has helped me find another way to do this:

This helped me count the accuracy during each block (loop) and display this on the screen using a text component.

This was just the 1st step towards another aim: trying to create a stop /discontinuation rule to terminate the experiment once a participant had made a certain number of errors within a block (loop).

This is a pretty clunky way to do this (e.g., I’m sure there are more delicate ways to terminate the experiment!!), but just for info, in case anyone else ever wants to do this! My final code was- for each loop:

Add code component then for these sections add:

Begin Experiment:


End Routine:

if key_resp.corr:
thisExp.addData('errorsset', errorsset)
thisExp.addData('totalaccuracy', totalaccuracy)
if errorsset > 8:
1 Like