| Reference | Downloads | Github

Builder Loop Error

Hi all!

I’m trying to make a loop that includes an image stimulus routine and then key press response routine. I chose a cvs file in trial properties (stimuli jpgs are in a column labeled stimFile and the correct keypress response are under corrAns). Image is $stimFile in image properties and Correct Answer is $corrAns in response properties . However, whenever I try to run it I get the following error:

“NameError: name ‘stimFile’ is not defined”

I’ve attached screenshots of my flow, the properties, and the cvs file. I’m very new to psychopy and would really appreciate any help!

I just realized the problem! I had it set to constant instead of set every repeat.