|
Post by student on Oct 11, 2020 14:07:43 GMT
I am trying to interrupt the following task after 3 minutes of its beginning (regardless of the number of trails completed). The following code is interrupting the task and the possibility to provide any additional answer. However, the task is not exiting to the thank you message, it is staying blocked on the last reached trial. What can i do in this case? Any help is appreciated. Thank you
bitmaps
consigne1
consigne2
consigne3
consigne4
consigne5
consigne6
consigne7
image1
image2
image3
image4
image5
image6
image7
image8
image9
image10
merci
emptybox ## an empty rectangle used as letter placeholder
table testconditions
"image 1" image1 0
"image 2" image2 0
"image 3" image3 0
"image 4" image4 0
"image 5" image5 0
"image 6" image6 0
"image 7" image7 0
"image 8" image8 0
"image 9" image9 0
"image 10" image10 0
task test
table testconditions
show bitmap @2 @3 0
text color black
readkeys option size 2
readkeys option show -50 150
readkeys option space 100
readkeys option placeholders emptybox
readkeys @1 180000
set $status STATUS
set $time_since_start time-since-start
save $status WORD RT
if $time_since_start > 180000
end task
fi
block real
message consigne1
message consigne2
message consigne3
message consigne4
message consigne5
message consigne6
message consigne7
tasklist
test 10 fixed
end
message merci
|
|
|
Post by PsyToolkit on Oct 11, 2020 20:06:59 GMT
What are you trying to do here? It seems that there might be a simpler solution.
Explain please what exactly you try to do.
Your readkeys maximum time is also 180000, that is maybe too long.
|
|
|
Post by student on Oct 11, 2020 20:49:14 GMT
I don't want to set a limit to the response time for each trial (that is why I am setting it for 180 000, so the participant will definitely answer before). Instead, I want to set a time limit for the whole task. So I want to interrumpt the task completely after 3 minutes regardless of the number of trials completed. Is this clearer?
|
|