If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): macOS Mojave 10.14.16
PsychoPy version (e.g. 1.84.x): v3.1.5
Standard Standalone? (y/n) yes
What are you trying to achieve?:
My temporal discounting task is based off the Airplane Task by A. Scheres et al., 2010.
Two airplane images appear on L/R sides of screen:
Each airplane carries a certain amount of coins. The “larger later” (LL) plane carries 10 coins that are rewarded after a delay. The “smaller sooner” (SS) plane either carries 2,4,6, or 8 coins that are rewarded immediately.
Participants use L or R arrow to select which coin reward they want.
Their response either activates the LL or SS “dummy loop”. This is the code I used:
codeSSorLL Begin experiment * doLL = 0 doSS = 0 Begin Routine * if key_resp.corr == 1: doLL = 1 doSS = 0 else: doLL = 0 doSS = 1
Here is a visual of my experiment’s flow:
This is what my stimulus file looks like:
I have added this piece of code for the LL delay:
codeDelayTime Begin Routine * if LLDummyLoop.thisN == 0: # only on the first trial jitters = [5, 10, 20, 30, 60] # create the list shuffle(jitters) # randomise its order current_jitter = jitters.pop() # extract one entry on each trial thisExp.addData('jitter', current_jitter) # record in the data for this trial
My current experiment works well and the scoring totals work, as well.
However, I need to make these TWO adjustments:
I need the height of the LL plane during choice presentation to correspond with the later delay time. (ie. higher the plane, longer the delay time).
I need the trials administered in the same pseudorandom order to all participants.
(They are currently run through the 8 image combinations in the stimulus file randomly (image setting is “set every repeat”) and repeat this 5 times via a random loop.)
Any advice is very appreciated. I have built my entire experiment so far from the answers given to others on this forum and from youtube tutorials.