Hi,
I have a staircase up and running in coder (thanks to everyone who has helped get me this far!) but I am wondering how I can get it to count the number of trials. Reason being for the first 10 trials I want to show participants a certain response prompt, then change to a different prompt for the next 10 trials, and so on.
The basic gist of the staircase is this:
staircase = data.StairHandler(startVal = (4*threshold),
stepType = 'lin', stepSizes= [2 , 1 ],
minVal=1, #maxVal=30,
nUp=1, nDown=2,
nTrials=40, nReversals=4)
And this is a snippet from my prompt presentation sequence where I want to tell it to do different things depending on what trial number it is on:
for frameN in range (correctStim):
reminder.draw()
leftIcon.draw()
rightIcon.draw()
leftText.draw()
rightText.draw()
if **_thisN <10:_**
tickIconB.draw()
win.flip()
elif **_thisN >=10:_**
tickIconC.draw()
win.flip()
I know the ‘thisN’ parts are wrong. The error report tells me I have not defined thisN. But I am struggling to know what code to put in (and where) to help me create a variable that counts the trial number.
If anyone can point me back on track that would be fantastic.
Thanks,
Christina