Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

2 Keyboard Responses in one sequence

Hi

I am designing an experiment to test sentence processing. The subjects first read a sentence and then answer a question.

I would like to know if I can have two keyboard responses in one sequence.

  1. one to check the response time to read the sentence
  2. one to check the response time to answer teh question

My second response time functions perfectly where I see the response and the response time.

However the first keyborad response where I have the spacebar as a response, works only when I press the space bar key twice and the response time doesnt get recorded.

I cant seem to find the logger variable.


Thank you so much in advance for your help.

Regards,

sc123

Comments

  • Hi Sc123,

    In theory two response items in a sequence is fine, but you need to adapt the general procedure a bit, or you will run into problems. Generally, responses will be overwritten every time you call a keyboard_item, so if you have two keyboard items in a row, the first one will not be used to compute accuracy or response times (those values get overwritten). What you want to do is to do a custom RT computation in between the keyboard items and use it later. See the attached experiment for an example.

    However the first keyborad response where I have the spacebar as a response, works only when I press the space bar key twice and the response time doesnt get recorded.

    the pressing twice problem is unrelated to the problem I described. Something else is wrong here. Is it possible that you have keypress as duration in the sketchpad after the first response item?

    Eduard


    Buy Me A Coffee

  • Thank you so much for your quick response Eduard.

    I will try your suggestion.

    Best Regards,

    Sasha

  • Dear Eduard,

    Thank you so much for the example.

    It worked when I insereted the python inline script, however OSWeb doesnt support Python. When I tried to insert the same thing in Javascript. I tried both

    var.first_rt = var.response_time as well as

    var first_rt = var.response_time;


    It doesnt record the first response time, just the second and for my first keyboard response I have to press the spacebar key twice, even though I have 0 in the duration section.


    Thank you in advance for your help!


    Best regards,

    Sc123

  • Dear Eduard,


    I think I managed to solve one half of the problem with this

    vars.first_rt = vars.response_time;

    and the keyboard press works as well.

    I am now checking how to collect both the responses separately.


    Thank you so much for your help.

    Best regards,

    Sc123

Sign In or Register to comment.