The PsychoPy version I am using is v3.0.0b12 standalone on Windows 7 Professional.
The barebones setup for the study I am trying to set up is as follow:
(1) Show participant a picture (e.g., ‘chocolate’) for naming
(2) If participant is able to name (e.g., ‘chocolate’): Proceed to next picture trial (e.g., ‘chair’) for naming
(3) If participant is unable to name (e.g., ‘chocolate’): Provide prompts (e.g., audio + written) to help naming that picture (‘chocolate’), then proceeding to next naming trial irrespective of whether naming was correct or not.
The experimenter will be at the side controlling button presses for steps (2) and (3) to indicate to the program whether participant had named correctly or not, so there is nil need for voice recognition.
So, far this is what I have done:
For code2, this is what I have typed:
Under ‘Begin Routine’ tab:
stimuli = [image_prac]
Under ‘Each Frame’ tab:
if key_resp_prac== corrAns: # correct response continueRoutine = False trials.finished = True else: # incorrect response sound_prac_incorr.play() ortho_prac_incorr.draw() continueRoutine = False break # stop checking after the first detected stimulus (in case of overlaps)
What specifically went wrong when you tried that?:
The problem is that the entire program runs and immediately ends, without displaying anything. There are no error messages either.
I am completely new to PsychoPy and programming. Please assist. Thanks!