Post by KasiaJ on Sept 27, 2019 13:09:31 GMT
Hi!
I'm trying to make on online version of the paradigm which was already used in some other experiments. I want to include several changes in this online vesion and use it as a control for the performed study. But apart of these planned changes I want all other parameter to stay as previously.
The thing is that in original paradigm, stimulus was presented for 900 ms (independently from response) and ITI was 800-1200 ms and the reaction could happen both during stimulation of after it (during ITI). With readkey function it was somehow tricky to have equal stimulation time independently from reactions, but I managed to do that. Now, I record both the reactions form stimulation and ITI period and calculate RT by substracting the beggining of trial from the time of response. The problem is, that for the time of screen refreshing after stimulation (16-32 ms) the responses are not recorded (it is neither a stimulus, nor ITI, and no "readkey" applies). Is there any way to fix this? This time period is important to me (in some conditions RT is close to 900 ms) and the gap in reaction times distorts the means in a systematic way.
How the trial is coded:
task trial00
table unique00
keys kp1 kp2 kp3
set $stimdur 900
set $iti random 800 1200
set $trialresp 0
set $numresp 0
set $correct 0
#--------------------- stimulus presentation
set $trialonset time-since-start
show background 48 48 48
show text @2 0 0 226 226 226
readkey @3 $stimdur
if STATUS != 3
set $trialresp time-since-start
set $numresp increase
set $stimdur decrease RT
delay $stimdur
set $correct 1
if STATUS == 2
set $correct 2
error
fi
fi
clear -1
#--------------------- ITI presentation
readkey @3 $iti
if STATUS != 3
set $trialresp time-since-start
set $numresp increase
set $iti decrease RT
delay $iti
set $correct 1
if STATUS == 2
set $correct 2
error
fi
fi
set $reactiontime $trialresp
set $reactiontime decrease $trialonset
#--------------------- if no keypress
if STATUS == 3 && $correct == 0
set $correct 3
error
set $reactiontime 0
fi
save @1 @4 @3 $trialonset $trialresp $reactiontime $correct $numresp BLOCKNAME TABLEROW
#clear -1
I'm trying to make on online version of the paradigm which was already used in some other experiments. I want to include several changes in this online vesion and use it as a control for the performed study. But apart of these planned changes I want all other parameter to stay as previously.
The thing is that in original paradigm, stimulus was presented for 900 ms (independently from response) and ITI was 800-1200 ms and the reaction could happen both during stimulation of after it (during ITI). With readkey function it was somehow tricky to have equal stimulation time independently from reactions, but I managed to do that. Now, I record both the reactions form stimulation and ITI period and calculate RT by substracting the beggining of trial from the time of response. The problem is, that for the time of screen refreshing after stimulation (16-32 ms) the responses are not recorded (it is neither a stimulus, nor ITI, and no "readkey" applies). Is there any way to fix this? This time period is important to me (in some conditions RT is close to 900 ms) and the gap in reaction times distorts the means in a systematic way.
How the trial is coded:
task trial00
table unique00
keys kp1 kp2 kp3
set $stimdur 900
set $iti random 800 1200
set $trialresp 0
set $numresp 0
set $correct 0
#--------------------- stimulus presentation
set $trialonset time-since-start
show background 48 48 48
show text @2 0 0 226 226 226
readkey @3 $stimdur
if STATUS != 3
set $trialresp time-since-start
set $numresp increase
set $stimdur decrease RT
delay $stimdur
set $correct 1
if STATUS == 2
set $correct 2
error
fi
fi
clear -1
#--------------------- ITI presentation
readkey @3 $iti
if STATUS != 3
set $trialresp time-since-start
set $numresp increase
set $iti decrease RT
delay $iti
set $correct 1
if STATUS == 2
set $correct 2
error
fi
fi
set $reactiontime $trialresp
set $reactiontime decrease $trialonset
#--------------------- if no keypress
if STATUS == 3 && $correct == 0
set $correct 3
error
set $reactiontime 0
fi
save @1 @4 @3 $trialonset $trialresp $reactiontime $correct $numresp BLOCKNAME TABLEROW
#clear -1