psychopy.org | Reference | Downloads | Github

Rating scale not storing button presses

If this template helps then use it. If not then just delete and start from scratch.

OSX El Capitain
PsychoPy version 1.84
standalone

I am trying to have psychopy store values 1-4 via a button press in response to a question they see. However I am not sure why when I look at the data after running the experiment there is not timestamp or values (i.e. 1, 2, 3, 4)? I have both store rating time and store rating checked in the options. Any ideas? thanks

I should also note there are no right answers, the scale is just there to see how much they agree with a question on a scale of 1-4.

I also have the program storing xlsx, csv, and summaries. And the logging level is exp.

I also have the program storing xlsx, csv, and summaries. And the logging level is exp.

The answer will probably depend on how you are collecting responses and how you are writing it to the xlsx/csv file? The problem might be that only the first value in the response is written to file.

Something like this has worked for me in previous versions of PsychoPy: You get a key-response using event.getKeys giving arguments “keyList” and “timeStamped”. E.g (ansKeys and trialClock have been defined in advance):

response = event.getKeys(keyList=ansKeys, timeStamped=trialClock)

The variable “response” will then contain both the response and the time stamp in separate fields. The values in “response” are passed to separate fields in my “trial” variable that is written to csv - like this:

trial['ansKey'] = response[0]
trial['ansTime'] = response[-1]

Hi,
is rating scale work properly, please? I set the values in range from 1 to 5, but the hot keys are from 0 to 4. do you have same problem, please?

regards,
tomasz

Hi Tomasz,

This seems like a separate issue, if after searching this site and the old site you don’t find any answers, it would be better to start a new question. Take care.