Howdy, Stranger!

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

Supported by

Experiment's logic fails when exported as a Jatos study

Hello,

I've created a Lexical Decision Test in OpenSesame. The file can be found here: https://drive.google.com/drive/folders/1y6W5MvQ4IlnCSgOOAzbiWm_Om92oRMxZ?usp=sharing

The experiment runs well while launched from OpenSesame on my computer but whenever I try to run it on OSWEB, the logic gets messed up:

I have designed the experiment so when the participants see 'words' on both side of the screen they should not press any key on the keyboard. The way I did this was by adding a separate keyboard response for these cases and assigning the correct response to be all the keys (Image below):


Then I added the following logic to my trial sequence:

If the response is correct (they press any key) than show them a red cross

If the response is incorrect (they don't press any key ) than show them a green check mark

As I said the logic works fine on my computer the problem is when I export it as a Jatos study, it's as if it ignores my keyboard assignments

Also, I tried designing another study with the 'space key' being the correct response and the same problem occurred (worked on my computer failed on OSWEB)

Can anyone help me with this?


Thank you,

Sana

Comments

  • edited August 2020

    Hi @Sana_2

    First of all, what version of osweb (or OpenSesame) are you using? The incorrect behavior regarding spacebar presses was a bug that has recently been fixed, so it may be possible you are using an older version of OpenSesame.

    Second, although your approach of specifying all keys as allowed/correct responses should work, but there are simpler approaches. If you leave the allowed_responses field empty then it already allows all keys as a response (i.e. OpenSesame listens to all keys and doesn't ignore any keypresses). In trials which the participant should not press a key (i.e. the no-go trials), you can simply check afterwards using an inline_javascript item if a key has been pressed and mark the trial as correct or incorrect. If you for example place the following code in the run phase of the item:

    if (vars.response === null) {
      vars.correct = 1
    } else {
      vars.correct = 0
    }
    

    then the response will be counted as correct if no key was pressed.

    I have to say that

    If the response is correct (they press any key) than show them a red cross

    If the response is incorrect (they don't press any key ) than show them a green check mark

    confuses me a bit. Shouldn't this be the other way around?

    Buy Me A Coffee

  • Hi Daniel,

    Thank you for your response!

    I actually realized that I was complicating things because in Opensesame you can use 'None' as an option for correct response; there was no need to approach things the way I did (I definitely feel silly now ...)

    I haven't been able to update Opensesame yet but the issues I encountered were probably due to me using an older version.

    Thank you very much for your help and support!

Sign In or Register to comment.