Hi, I meet a new pronlem and hope you can help me .I am designing a Stop Signal Task, which prensent two stimulus.One is for going to press the key,after that ,the other one show meaning to withdraw.I want to the SOA between the two stimulus change according to the participant’s reaction .The original soa = 200ms,if the participant behave right ,then soa will add 17ms radomly in next trail.If not, soa will reduce 17 ms radomly.
In builder,I write codes at the begining of the rotutine and the end of the routine respectly.And the second stimulus start time is $soa.Code like this:
(at the begining of the routine）
soa = 2.5
（at the end of routine）
i = random.randint(1,3)
if response.corr == 0:
soa += i0.017
soa -= i0.017
the whole program can run,but when I examine the result in excel find it may not be exacty what I want.Am I wrong ,if so ,how to revise?