Adding a task between blocks

Hello everyone!

I created an experiment in which I want participants to learn symbol-sound pairs. I currently have 2 blocks in which different pairs are presented. Order of the blocks is counterbalanced between participants. After each block I inserted 30s pause. (pic attached).

What I want to do is to test participants on the learned pairs at the end of each block. I want to present one of sound and ask them to type the name of the previously seen symbol (“Free recall” is the name of the routine in the picture).

I believe I should have a code component to tell the program that I want to repeat the “Free recall” routine at the end of each block.

Can anyone help me to understand how to achieve that?

Based on your flow diagram Free Recall will be repeated after each block so I’m not sure of where you are getting stuck

Hi @wakecarter

Sorry, my wifi has been down and my post was not fully uploaded.

The recall test will be different for each block (e.g. Block 1 has its own recall - Block 2 has another recall with different pairs). I’ve basically tried to counterbalance the order again (pic attached), but I got this error:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 822, in findPathsInFile
filePath = eval(filePath)
File “”, line 1, in
NameError: name ‘expInfo’ is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1320, in onPavloviaSync
self.fileExport(htmlPath=htmlPath)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 759, in fileExport
target=“PsychoJS”)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 73, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 242, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 214, in _makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 229, in writeScript
self_copy.flow.writeFlowSchedulerJS(script)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\flow.py”, line 289, in writeFlowSchedulerJS
resourceFiles = set([resource[‘rel’].replace("\", “/”) for resource in self.exp.getResourceFiles()])
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 870, in getResourceFiles
condsPaths = findPathsInFile(params[‘conditionsFile’].val)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 836, in findPathsInFile
files.extend(findPathsInFile(str(condFile)))
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 853, in findPathsInFile
conds = data.importConditions(thisFile[‘abs’]) # load the abs path
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\data\utils.py”, line 365, in importConditions
wb = load_workbook(filename=fileName, data_only=True)
File “C:\Program Files\PsychoPy3\lib\site-packages\openpyxl\reader\excel.py”, line 174, in load_workbook
archive = _validate_archive(filename)
File “C:\Program Files\PsychoPy3\lib\site-packages\openpyxl\reader\excel.py”, line 121, in _validate_archive
archive = ZipFile(filename, ‘r’, ZIP_DEFLATED)
File “C:\Program Files\PsychoPy3\lib\zipfile.py”, line 1090, in init
self.fp = io.open(file, filemode)
PermissionError: [Errno 13] Permission denied: ‘C:\Users\c1958056\OneDrive - Cardiff University\PhD\onlineExperiment\InferenceTask_pilot\RecallA.xlsx’

OKay, Sorted somehow!!
Thank you!