Post by newuser on Jun 15, 2021 8:16:00 GMT
Hello!
I am trying to create an online experiment for word recognizing. First, there is the learning block that participants just read the words shown on the screen and in the next block they have to respond using two keys if they have seen again the word presented on the screen or not (there are the previously seen words and completely new words, all in format of bitmaps/pictures). The experiment runs ok but at the end the data just for one row are saved. I have tried multiple times but I couldn't resolve the issue. This is the code I am using:
bitmaps
instruction1
instruction2
word1
word2
word3
word4
word5
word6
word7
word8
word9
word10
noword1
noword2
noword3
noword4
noword5
noword6
noword7
noword8
noword9
noword10
ok
mistake
ready2
ready3
ready1
options
fullscreen
resolution 1100 800
table words
"word1" word1 2
"word2" word2 2
"word3" word3 2
"word4" word4 2
"word5" word5 2
"word6" word6 2
"word7" word7 2
"word8" word8 2
"word9" word9 2
"word10" word10 2
"noword1" noword1 1
"noword2" noword2 1
"noword3" noword3 1
"noword4" noword4 1
"noword5" noword5 1
"noword6" noword6 1
"noword7" noword7 1
"noword8" noword8 1
"noword9" noword9 1
"noword10" noword10 1
task learning
show bitmap word1
delay 3500
clear -1
show bitmap word2
delay 4000
clear -1
show bitmap word3
delay 3500
clear -1
show bitmap word4
delay 3500
clear -1
show bitmap word5
delay 3500
clear -1
show bitmap word6
delay 3500
clear -1
show bitmap word7
delay 3500
clear -1
show bitmap word8
delay 3500
clear -1
show bitmap word9
delay 3500
clear -1
show bitmap word10
delay 3500
clear -1
task recall
keys x n
table words
show bitmap word3
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword1
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word9
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word4
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword2
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword3
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword4
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word10
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword5
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word5
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word6
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword6
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word8
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword7
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword8
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word1
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word2
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword9
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word7
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword10
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
if STATUS != CORRECT
set &errors 1
fi
save BLOCKNAME @1 TABLEROW KEY STATUS &errors
# -------------------------------------
message instruction1
block learning
tasklist
learning 1
end
message instruction2
block test
bitmap ready3
delay 1000
bitmap ready2
delay 1000
bitmap ready1
delay 1000
tasklist
recall 1
end
This is the data that are saved:
test noword3 invalid 1 13 1 1 0
Back to experiment editor Show data
Any thoughts or advice is welcomed! Thank you!
I am trying to create an online experiment for word recognizing. First, there is the learning block that participants just read the words shown on the screen and in the next block they have to respond using two keys if they have seen again the word presented on the screen or not (there are the previously seen words and completely new words, all in format of bitmaps/pictures). The experiment runs ok but at the end the data just for one row are saved. I have tried multiple times but I couldn't resolve the issue. This is the code I am using:
bitmaps
instruction1
instruction2
word1
word2
word3
word4
word5
word6
word7
word8
word9
word10
noword1
noword2
noword3
noword4
noword5
noword6
noword7
noword8
noword9
noword10
ok
mistake
ready2
ready3
ready1
options
fullscreen
resolution 1100 800
table words
"word1" word1 2
"word2" word2 2
"word3" word3 2
"word4" word4 2
"word5" word5 2
"word6" word6 2
"word7" word7 2
"word8" word8 2
"word9" word9 2
"word10" word10 2
"noword1" noword1 1
"noword2" noword2 1
"noword3" noword3 1
"noword4" noword4 1
"noword5" noword5 1
"noword6" noword6 1
"noword7" noword7 1
"noword8" noword8 1
"noword9" noword9 1
"noword10" noword10 1
task learning
show bitmap word1
delay 3500
clear -1
show bitmap word2
delay 4000
clear -1
show bitmap word3
delay 3500
clear -1
show bitmap word4
delay 3500
clear -1
show bitmap word5
delay 3500
clear -1
show bitmap word6
delay 3500
clear -1
show bitmap word7
delay 3500
clear -1
show bitmap word8
delay 3500
clear -1
show bitmap word9
delay 3500
clear -1
show bitmap word10
delay 3500
clear -1
task recall
keys x n
table words
show bitmap word3
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword1
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word9
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word4
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword2
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword3
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword4
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word10
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword5
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word5
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word6
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword6
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word8
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword7
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword8
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word1
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word2
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword9
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap word7
readkey 2 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
show bitmap noword10
readkey 1 10000
clear -1
if STATUS == CORRECT
show bitmap ok
delay 500
clear -1
fi
if STATUS != CORRECT
show bitmap mistake
delay 500
clear -1
fi
if STATUS != CORRECT
set &errors 1
fi
save BLOCKNAME @1 TABLEROW KEY STATUS &errors
# -------------------------------------
message instruction1
block learning
tasklist
learning 1
end
message instruction2
block test
bitmap ready3
delay 1000
bitmap ready2
delay 1000
bitmap ready1
delay 1000
tasklist
recall 1
end
This is the data that are saved:
test noword3 invalid 1 13 1 1 0
Back to experiment editor Show data
Any thoughts or advice is welcomed! Thank you!