OS : Win10
PsychoPy version : 3.2.4
What are you trying to achieve?:
I have designed a Simon task. But it keeps on showing the following error, however, earlier there was no such error. The experiment ran 2-3 times, but when I increased the number of repeats to 50, it showed the following error.
I am attaching the experiment.
simon_cond.csv (126 Bytes)
simon_task.psyexp (41.0 KB)
I hope my query is clear.
@triptiverma thisTrial
is a loop attribute, so try main.thisTrial['condition']
in your code instead.
Thanks for your help. The code is now running perfectly.
I’m having same problem, tried this solution but ‘main is not defined’. So no love.
OK, so it seems you don’t have to drill down into thisTrail in the JS to get to columns in your conditions file. They just seem to magically be defined as a global variable. So instead of
thisTrial[‘condition’]
it’s just
condition
I hope someone gets use from this, buried as it is in this post.