Howdy, Stranger!

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

Supported by

[solved] continuous line ! help me.

edited September 2015 in OpenSesame

Hi to you all, I am trying to build my first experiment with Opensesame, I am interested on probability and confirmation judgment. The subject in my experiment will have to click on a continuos line that begins on -100, finished on +100 and has 0 as median.
Could anyone suggest me, how to build it ? I am a beginner with open sesame and python language.

Many thanks in advance.

Comments

  • edited 11:52AM

    Hi,

    It sounds like you want a slider as response variable. Can you check these discussions, whether one of them is doing what you need?

    Good luck,

    Eduard

    Buy Me A Coffee

  • edited 11:52AM

    Hi Eduard !

    Tank for your reply, i’m am back on my experiment and i have a second question about the slider that I have installed. In your opinion is it possible to modify on my own pleasure the slider without creating a specific phython code ?
    I would like to have in my experimente a slider like the image here attached.

    image

  • edited 11:52AM

    Hi,

    Well, the sliders itself is created by coding it directly in an inline_script. So you won't be able to get around editing/adding some lines by yourself. In general, the templates above should get you started. If you then make only small changes to the code and see what happens, you'll be able to reach make your slider just the way you want it to.

    From what I can see in the image of your slider, it is possible to create it. Just give it a try.

    Good luck,

    Eduard

    Buy Me A Coffee

  • edited 11:52AM

    Hi Eduard ! i have created my customized slider bar and it appears in the way that i need. Now i have another problem...it works very very slow, in your opinion it could be a problem with the python code that i have created ?

  • edited 11:52AM

    Hi,

    It is certainly possible that you write the code in a way that is highly inefficient, but likewise, it should be feasible to have a very quick slider. It's hard to say anything about what could have gone wrong, without seeing your code. How about you post it here or upload it somewhere?

    Thanks,

    Eduard

    Buy Me A Coffee

  • edited 11:52AM

    https://drive.google.com/file/d/0B29XcRR_leRVVjVhS2dBRVM0TEE/view?usp=sharing

    this is the code that i have modified !

    thanks a lot your help !

  • edited 11:52AM

    Hi,

    Unfortunately, I can't open your script in OpenSesame. It complains about missing quotation marks. Can you try to create a version that doesn't have the issue?

    Anyway, which part does work slowly? The updating of the "fill" state, or the entire experiment?

    Eduard

    Buy Me A Coffee

  • edited 11:52AM

    I had the same problem with my rating scale. It's like massive frames per second drop. Looks like it occurs after frequent code changes/run experiment cycles without restarting OpenSesame itself. Restarting used to fix it for me.

  • edited 11:52AM

    @stefanouser

    Hi Eduard ! i have created my customized slider bar and it appears in the way that i need. Now i have another problem...it works very very slow, in your opinion it could be a problem with the python code that i have created

    Your code looks fine, although it's clearly based on an older plug-in. You could take a look at the documentation to see an example of a modern plug-in:

    The slowness is probably due to slow frame drawing, which is a known problem for these kinds of things. You can find some workarounds here:

    @eduard

    Unfortunately, I can't open your script in OpenSesame. It complains about missing quotation marks. Can you try to create a version that doesn't have the issue?

    It's actually not an experiment, but the Python-part of a plug-in.

    Cheers!
    Sebastiaan

  • edited 11:52AM

    Thank you to you all, Now my experiment working fine !

Sign In or Register to comment.