Howdy, Stranger!

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

Supported by

[solved] slider plugin response variable

edited May 2014 in OpenSesame

I am unable to log the data from slider plugin. I have inserted "set response 'Q1resp'" in the slider script and have made a custom variable Q1resp in the logger. I assume that this should work, but it is not. I am getting NA in the Q1resp.

Any pointers will be helpful.

Thanks,
Asma

Comments

  • edited 10:36PM

    Hi Asma,

    The slider plug-in's response variable is response. Variables cannot be recoded in the way that you suggest.

    If you cannot see the response variable in your logger's variable selection, you can select "Add custom variable" and add "response". This will make sure you will log the slider's output (which, by the way, is the filling percentage).

    Good luck!

    Edwin

  • edited 10:36PM

    Thanks for answering Edwin.
    I have 10 sliders in one loop. I have inserted one logger at the end of the loop. In logger's variable section, there is a response variable only for one of the sliders. That was the reason I had set a different variable name for each of the slider's response.
    Any other suggestions for how this may work will help.

    Thanks,
    Asma

  • edited 10:36PM

    You could save yourself some work, by defining the questions in a variable in your loop item (e.g. quest), and then referring to this variable in a single slider item in the sequence item attached to your loop. Do this by using square brackets: [quest].

    Good luck!

  • edited 10:36PM

    That was helpful. Thanks so much!

  • edited 10:36PM

    Hmm I'm having the same problem re: logger. I've done what Edwin suggested, and tried to "Add custom variable", and I made a variable called "response_slider" (since "response" was already taken by something else). When I look at the logger file it shows "response_slider", but all of the values are NA - it doesn't seem to be recording any numbers. Is there something in the slider settings I need to change? Thanks in advance.

  • edited 10:36PM

    OK, I figured this out, but I'll respond to myself in case anyone else has the same issue and this might help. In logger, a lot of pretty useless variables are automatically generated - e.g. in my experiment I have a sketchpad just displaying instructions, and logger automatically creates a "response" variable for it. When you go into logger to create the "response" variable for the slider, you'll find that you cannot because "response" may already exist for some other object. But if you just run the experiment with that "response" variable checked (even though it says it corresponds to, say, sketchpad and not slider) it will still correctly log the slider response. This seems kind of buggy (since it's a bit misleading and you might prematurely conclude that it doesn't work, as I did), but it works, so all is well!

Sign In or Register to comment.