OS (e.g. Win10): macOS Mojave 10.14.6
PsychoPy version (e.g. 1.84.x): v3.2.4
Standard Standalone? (y/n) y
What are you trying to achieve?:
Hi there,
first of all, i’m supernew to PsychoPy, so please keep that in mind.
I want 60 items to be rated on a 7-point scale. I tried the form component for this to have multiple ratings on one screen with a scroll bar. Because they were to many I decided to divide them into 6 different excel-files (each with 10 items). I wanted them to appear randomly after each other, so I thought block of trials would be a good approach after randomizing the 10 items within a file.
My color excel files all look like this:
question text type options layout
orange; rating; not at all, , , , , , absolutely; horiz
blue…
The chooseBlocks looks like this
StimFile
colors1.xlsx
colors2.xlsx…
What should i write for Items in the form component? $StimFile as well? or leave it blank? !
What did you try to make it work?:
I tried to transfer Jons Tutorial: Blocks of trials and counterbalancing — PsychoPy v2021.2
I checked if i needed some path added to the files but they’re on my desktop, just as the psyexp file
What specifically went wrong when you tried that?:
The experiment doesn’t even start and i get the following:
Further it says that it can’t find a condition file. see screenshots
if key_resp.keys in ['', [], None]: # No response was made
^
IndentationError: unexpected indent
the lines in the code are:
\\\
# -------Ending Routine "trial"-------
for thisComponent in trialComponents:
if hasattr(thisComponent, "setAutoDraw"):
thisComponent.setAutoDraw(False)
formData = form.getData()
while formData['questions']:
for dataTypes in formData.keys():
thisExp.addData(dataTypes, formData[dataTypes].popleft())
thisExp.nextEntry()
# check responses
if key_resp.keys in ['', [], None]: # No response was made
key_resp.keys = None
trials.addData('key_resp.keys',key_resp.keys)
if key_resp.keys != None: # we had a response
trials.addData('key_resp.rt', key_resp.rt)
trials.addData('key_resp.started', key_resp.tStartRefresh)
trials.addData('key_resp.stopped', key_resp.tStopRefresh)
# the Routine "trial" was not non-slip safe, so reset the non-slip timer
routineTimer.reset()
thisExp.nextEntry()
Another question that i have is if the form tool is supported by Pavlovia? I have to run the study online later. So all the effort would be useless if that doesn’t work. For that case: is there any other possibility to have multiple rating scales on one screen? I don’t want participants to have 61 separate screens for the ratings