What are you trying to achieve?:
On each trial ‘adjust’ the image using arrow keys and then press return to select. In the example I have posted here I attempt to vary the orientation of a triangle. The values of orientation are in the excel conditions file. In my real experiment the variable will not be orientation, but will be the selected image. Each arrow press will present a different image. Therefore in my real experiment the excel file will have the filenames of images.
What did you try to make it work?:
I have been using code snippets in ‘begin experiment’ and ‘each frame’. I can successfully make the triangle change orientation when I use the ‘greened out bits of code’ and have orientation = orient.
What specifically went wrong when you tried that?:
When I try to connect the code to accessing the rows of the excel conditions file the experiment only presents the ‘begin experiment’ code orientation and stays on that one. No error message. It just doesn’t successfully execute the loop when I try to link arrow keys to variable. I can press enter as set to end the routine.
In the trial properties I have set selected row to $[RowNum]
and Conditions to an excel file with ‘angle’ defined in 6 rows.
Is it possible to select a row in the conditions file based on a button press? I have been reading various threads and saw that I shouldn’t use a ‘wait for keypress’ command in a frame script. Timing is not crucial here. As long as the change ‘feels’ smooth to user. RT isn’t important for this experiment.