Forum Replies Created
-
AuthorPosts
-
kaylac
ParticipantThanks, Jeremy! This helps a lot!
Kayla
kaylac
ParticipantI found the speeded-decision example provided by this website and got inspired! I used a selector and four dummy text to record the results and it works well. Thank you for your reply and developing new versions of PennController. It would be more convenient if we can get results directly from the key element and .log(). Good luck!
Kayla
kaylac
ParticipantHi Jeremy,
Thanks for you reply. I read the documentation and tried it. Good news is that the .log(“first”) does work, but the problem is that it seems that the key element must receive a response before the script can go on. If I disable the key after time out, the script will get stuck at the end of the trial; if I don’t disable it, it will record the keypress that doesn’t correspond to the Stroop trial but the comprehension question later in the trial (the response key for the comprehension question is the same as that of Stroop). Could you help me out?
Best,
Kaylakaylac
ParticipantHi,
The problem of Controller-DashedSentence is solved. I see there is another column called “reading time” that shows the reading times for every word.
However, I still can’t get the keypress recorded. Here is one line in the result file: “1586082589,1baa4fb752f7ebba39b52132ef756e46,PennController,1,0,test,NULL,Key,re_stroop,Key,NA,Never,undefined,(failed keypresses happened)”. I am sure that I have pressed the key because the
.callback(getTimer("delay1").stop())
executed well. I tried to put the.log()
before the.callback(getTimer("delay1").stop())
(i.e. right afternewKey("re_stroop", 49, 50, 51)
), but I still get “NA … (failed keypresses happened)”.I also tried:
newKey("re_stroop", 49, 50, 51) .log() .wait()
I can get the keypress recorded by this code. A line of result: “1586081680,1baa4fb752f7ebba39b52132ef756e46,PennController,1,0,test,NULL,Key,re_stroop,PressedKey,2,1586081657979,undefined,Wait success”, but it seems that
.log()
can’t work along with.callback()
? -
AuthorPosts