| Reference | Downloads | Github

How to use a visual analog scale?

OS: Mac High Sierra
PsychoPy version: 2020.1.3
Standard Standalone? (y/n): y
What are you trying to achieve?:
I’m trying to implement a visual analog scale for a categorical rating task. You’re supposed to listen to an audio file and rate how easy it is to understand with the anchors “Difficult” on the left and “Easy” on the right. How can I change it to have the words “Difficult” and “Easy” as anchors (I don’t want people to think about numbers) and maybe the question “Indicate how easy this sentence is to understand” instead of “0 = not at all . . . extremely = 1”?

What did you try to make it work?: I added the “rating” tool response and checked the “Visual analog scale” box. I made the Category choices “Difficult, Easy” and the Labels “Difficult, Easy”

When this didn’t work, I tried going to the Custom tab and using this code:
#set up window and scale
from psychopy import visual
labels=[‘Difficult’, ‘Easy’],
scale=None, low=1, high=100, tickHeight=0)

#show scale
while scale.noResponse:

#show response
print scale.getRating(), scale.getRT()

What specifically went wrong when you tried that?: When I click the “Visual analog scale” box it disregards anything I type in for category choices, labels, and scale description. It just goes with the default, which is a scale with anchors “0” and “1” and the words “0 = not at all . . . extremely = 1”.

When I input the code in the Custom tab, it has this error: returnVal = self.scriptProcess.poll()
AttributeError: ‘NoneType’ object has no attribute ‘poll’