Slider object: rating not logged

Hi!! I’m new to PsychoPy, and would be very grateful for help in resolving this problem. :smiley: I would like to add here that I have no knowledge of programming, and am therefore unable to modify scripts using the Coder interface.

OS (e.g. Win10): Win10

PsychoPy version (e.g. 1.84.x): v2020.2.4

Standard Standalone? (y/n) If not then what?: Yes, it’s a ‘Standard Standalone’ install.

**What are you trying to achieve?: Please see linked video clip for a sample of the task (rotn-task-sample). The participant sees a reference image (top of screen) & four answer options. S/he selects one by clicking a slider object button located below the answer image options. The current script is a short, test version. The data file has the response RT, but does not indicate which button was pressed.

**What did you try to make it work?: Not sure if this is relevant, but I had already discovered one glitch in the slider object properties box – in the box ‘Labels’, whenever I inserted “A, B, C, D” as the four labels for the four radio buttons, the script wouldn’t run. I finally left this field empty.

**What specifically went wrong when you tried that?: See response to the above question.

Include pasted full error message if possible. “That didn’t work” is not enough information.

Hi There,

Firstly - welcome to PsychoPy!

Secondly, are you using a rating scale or a slider component?

Thirdly, have you tried adding a code component and in your ‘end Routine’ tab use:
This should print the rating that was made to your runner view, for documentation see


PS. when sharing your task the easiest way for us to see what is going on is to sync your project as a public project to then use Dashboard >Experiments> [select relevant experiment] > view code and then share that URL with us - that way we can download your experiment and take a look :slight_smile: If you are unsure how to get starting syncing to pavlovia here is a brief youtube video

Hey, Becca! :grinning: Thank you so much for the warm welcome.

I’m using the Slider, not the Rating Scale.

I’d like to try what you’ve advised. I’m afraid I’m quite clueless as to how to open up the back-end code & insert this line, though.* I’ve just begun to go through the ‘RatingScale’ topic discussion you linked me to, although I’m not sure whether it’ll give me information about the Slider.

(*I tried opening up the code in the ‘Coder View’, & went through a couple of different modules of the javascript, e.g., “util” and “core”, but I couldn’t identify the section of code pertaining to my task. It all appears to be the overall framework for running PsychoPy.)

As for putting my task on Pavlovia, I thought that I would try to get at least a basic version of my task ready before uploading it. Right now, it’s just a test version with 2 - 3 stimuli. I’m attaching my script here, though.
PsyPy-MentRotn-Test.psyexp (39.5 KB)

Hi there!

Well the good news is you don’t have to open up the coder view to add a code component! In builder view you can select custom>code from the component panel on the right :blush: have a play with that and let us know what happens if you add that line of code there.


Hi again, Becca!!! I’ve been trying out what you just suggested… I realized that I could open up the code for the script once I ran the “compile” process. And I’ve just discovered that the “getRating” logging is enabled, & that this parameter is being displayed in a column titled “response”. Strangely, instead of displaying the tick mark number (i.e., 1 / 2 / 3 / 4), the data file displays decimal values, probably corresponding to the exact position of the radio button on the screen. E.g., instead of ‘3’, it’s displaying “2.974537”. This is what led to my confusion.

Thanks a tonne!!!