Post by lilly on Apr 17, 2020 8:39:07 GMT
Hello again!
I have succeeded in my previous experiment (with the help of this board). I am starting a new experiment and it is coming along nicely, but after watching the example script and the information on this thread and manual, I am still stuck.
As in my previous experiment, I would like to start collecting the response simultaneously with the stimuli. After a set period of time, the stimuli disappears, but the readkey command is prolonged. In the previous experiment, it was suggested to use this snippet (already adapted to current experiment).
However, this means that the maximum-stimulustime, rather than stimulustime in general is 700. In the previous experiment this was not a problem as the stimulus-time was 52 ms, but 700 ms for each stimuli versus max 700 ms for each stimuli is something else. I would like to show the stimuli for exactly 700 ms, collect a response with readkey at the same time, clear the stimuli after those 700 ms but prolong the readkey commando with an additional 300 ms regardless of STATUS. This way, each trial is exactly 1000 ms. In other words, I would like something as
show text
delay 700 AND readkey 700
clear text
show blackscreen
delay 300 AND readkey 300
I have tried timestamp-diff to create some kind of loop in which the readkey command is looped while timestamp-diff != 700, but this raised another problem in step 1 as I expected the time to be exactly 700ms for not-pressed trials, but it varied? Has this something to do with the speed of my internet or laptop or is it the difference between showing the text and reading the key? How can I get it to be exact 700? I used timesstamp-diff StartStimuli EndStimuli.
Any help is appreciated!
I have succeeded in my previous experiment (with the help of this board). I am starting a new experiment and it is coming along nicely, but after watching the example script and the information on this thread and manual, I am still stuck.
As in my previous experiment, I would like to start collecting the response simultaneously with the stimuli. After a set period of time, the stimuli disappears, but the readkey command is prolonged. In the previous experiment, it was suggested to use this snippet (already adapted to current experiment).
show text @4 0 0 255 255 255
readkey @5 700
clear 1
set $tmprt RT
set $tmpst1 STATUS
if STATUS == TIMEOUT
readkey @5 300
set $finalrt expression RT + $tmprt
fi
if STATUS != TIMEOUT
set $finalrt expression RT
However, this means that the maximum-stimulustime, rather than stimulustime in general is 700. In the previous experiment this was not a problem as the stimulus-time was 52 ms, but 700 ms for each stimuli versus max 700 ms for each stimuli is something else. I would like to show the stimuli for exactly 700 ms, collect a response with readkey at the same time, clear the stimuli after those 700 ms but prolong the readkey commando with an additional 300 ms regardless of STATUS. This way, each trial is exactly 1000 ms. In other words, I would like something as
show text
delay 700 AND readkey 700
clear text
show blackscreen
delay 300 AND readkey 300
I have tried timestamp-diff to create some kind of loop in which the readkey command is looped while timestamp-diff != 700, but this raised another problem in step 1 as I expected the time to be exactly 700ms for not-pressed trials, but it varied? Has this something to do with the speed of my internet or laptop or is it the difference between showing the text and reading the key? How can I get it to be exact 700? I used timesstamp-diff StartStimuli EndStimuli.
timestamp StartStimuli
show text @4 0 0 255 255 255
readkey @5 700
timestamp EndStimuli
clear 1
Any help is appreciated!