[solved] slider plugin response variable
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
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
responsevariable 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
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
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!
That was helpful. Thanks so much!
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.
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!