Hello,
I am very new to PsychoPy, and struggling with what should be an easy to programme task. I have successfully programmed this task with other software, but I just can't get it right with PsychoPy. In my experiment one trial consists of:
Fixation cross for 500ms
Presentation of Element1 (image component-> $E1)
end with button press ('space') or after 4 seconds (save RT to Element1) (keyboard component, KeyE1)
Presentation of Element2 (image component->$E2)
end with button press ('space') or after 4 seconds (save RT to Element2) (keyboard component, KeyE2)
Presentation of Element3 (image component->$E3)
end with button press ('space') or after 4 seconds (save RT to Element3) (keyboard component, KeyE3)
Presentation of a question mark (text component) (Question)
end with button press ('a','s','d','f','g','h','j','k','l',';') or after 4 seconds (save RT to Question and correct answer/button (corrBu)) (keyboard component, KeyQ)
Presentation of correct answer (Monitor)
end with button press ('space') or after 4 seconds (save RT to Monitor) (keyboard component, KeyM)
Blank screen duration 500 ms
Loop randomly through all trials
The excel file is defined as:
trialNum condition E1 E2 E3 condName corrAns corrBu
1 1 2E1_3.bmp 4AE_4.bmp 6E12.bmp NA_A12 7 ;
2 1 2E1_4.bmp 4AE_3.bmp 6E12.bmp NA_A12 7 ;
3 1 2E1_2.bmp 4AE_4.bmp 6E12.bmp NA_A12 6 l
.
.
.
48
So each row is a trial.
In order to define the start and end of each stimulus in the trial I have used:
For the start: $FixCross.status == STOPPED being the name of the component, the previous one; for Element1 being $FixCross.status == STOPPED, for Element 2 being $Element1.status == STOPPED, and so on
For stop: $KeyE1.keys == 'space' for Element1, $KeyE2.keys == 'space' for Element2, $KeyE3.keys == 'space' for Element3, and so on (I couldn't figure out how to specify stop = button press or > 4 seconds)
Each keyboard component is defined to start with its corresponding element (image or text component), for instance, $Element1.status == STARTED for KeyE1, stop is left blank, allowed keys defined (e.g. 'space'), force end of routine unchecked, discard previous and sync RT with screen checked.
When running the experiment, it presents the fixation cross, it presents the first image and it disappears when i press 'space', it presents the second image, but then it gets stuck there, 'space' doesn't end the stimulus and continue with the next one as it is supposed to. It doesn't save anything also.
I have checked the examples, read through the posts, manual, and although I've found bits of information which I have implemented (using the component status and *.keys to control start and end), I have tried to eliminate the keyboard component and insert codes before each stimulus (unsuccessfully, well actually with a similar outcome where presentation doesn't go passed the second image). I cannot figure out why it works for the first image but not for the rest of the stimuli.
I am a bit ashamed I cannot figure this out as it is a simple: stimulus -> response via keyboard x 5 different stimuli (3 images, 2 text) presented one after the other. Record and save all RT and responses, save all columns of the excel.
I have attached the experiment I have built (builder) and excel file, I have not attached the images though (if needed please let me know).
I would be very grateful I anyone could help me.
Thank you very much,
Anna