Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

Extending Screen to tablets

CandiceCandice Posts: 24
edited September 25 in OpenSesame

Hello!

I was wondering if anyone has used OpenSesame on a computer and extended it to one (or ideally 2 tablets). The idea is to have two people responding on two tablets (playing a game against each other) and registering the responses on the computer.
If that's possible, what program/app do you use so that you can respond on the tablet and it registers on the computer?

Thanks!

Comments

  • sebastiaansebastiaan Posts: 2,764

    Hi Candice,

    Interesting! It sounds like you have a few options, but the best option depends on what you want to do exactly, and what kind of tablet you want to use.

    The easiest option is probably to use Windows tablets, so that you can simply use the desktop version of OpenSesame. This would allow you to install Psynteract, developed by @Pascal and Felix (who I don't think is on the forum), which is a plugin/ extension for interactive experiments.

    If you want to use Android tablets, you would have to write your own code to have the two tablets communicate with each other, and, if necessary, with a central computer that stores the data. This possible, and people (including me) have done it, using the Python socket library. But it will take some coding skills.

    Cheers!
    Sebastiaan

    Thanked by 2Pascal Candice

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • PascalPascal Posts: 50

    Hi Candice,

    thanks, @sebastiaan, for mentioning psynteract. Felix is also in the forum - but a bit harder to find (as @mezzopiano).

    It definitely sounds like psynteract might be an option here. As Sebastiaan suggested, if you are using a Windows tablet (or any computer running Windows/Mac OS/Linux), you could install and use the psynteract plugins for OpenSesame (https://github.com/psynteract/psynteract-os). This way the two clients could commicate via a central server (that you could access via a browser from any computer).

    If you are using Android and cannot install the plugins there, it might be a bit more complicated regarding psynteract. I believe that you could still use the underlying code in Python library that can be found here (https://github.com/psynteract/psynteract-py). If it is troublesome to install the library on the tablet, you could just include the Python code from the init file in the prepare phase of an inline script at the beginning of the experiment). However, the library depends on other Python packages (requests, pycouchdb) and I don't know how difficult it is to install them on Android.

    You can find more information about usage and installation of psynteract here: https://github.com/psynteract/psynteract-docs

    Best,

    Pascal

    Thanked by 1Candice
  • CandiceCandice Posts: 24

    Hi Sebastiaan and Pascal,

    Thank you so much for your responses!

    What I want to do is actually much simpler. I just want to use the tablets as screen extensions (just like I would additional monitors), but I want the participants to be able to use the touch capabilities on the screens. I'm currently running something similar using two touch screen monitors, but I was wondering if anyone had done that with tablets.

    Thanks again!

    Cheers,
    Candice

  • sebastiaansebastiaan Posts: 2,764

    Hi Candice,

    I have created a plugin to do one half of what you want to do: broadcast the display to Android tablets:

    However, this plugin does not allow you collect touches on the tablet screen and send these back to the main experiment. It's one-way communication, in other words.

    You could see if you, or a technically skilled colleague, could extend the broadcast_screen plugin so that it supports bidirectional communication? It's certainly possible, but it may be tricky.

    Cheers!
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

Sign In or Register to comment.