OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 3.0.3
Standard Standalone? (y/n) If not then what?: Y
What are you trying to achieve?:
I am trying to make the below work based on the post here: Blocks of trials and counterbalancing
Below is a screenshot of the simple loop I’m trying to achieve:
What I’m trying to do is for each block, have the trials loop access a different excel file with the stimuli for those trials.
My block definition looks like this:
and my trials definition looks like this:
“opponent_condition” is a column inside ‘choose_opponent.xlsx’ which has a list of filenames.xlsx. Now, within each opponent_condition file is a bunch of parameters. For example, there is one called ID_text which i would like to have in a text component on each trial. So in the text box I type $ID_text.
However, when I run the experiment I get the following error:
I haven’t found a satisfactory resolution to that error. However, I did try something based on a different answer (which annoyingly I now can’t find again). It basically said to delete the reference to the condition file in the outer block and instead define the block files in the Begin Experiment tab (i.e. block = [‘name1.xlsx’, name2.xlsx]), and then in the trials condition box, put: $block.pop(). When I do that I get this error:
Any recommendations welcomed. I have read and re-read the post I linked above and can’t figure out what I’m doing differently, so I’m quite confused.
Thanks in advance.