I am working on experiment, in which I present ratings as bars on a horizontal line. So far I only presented 8 ratings, which represented the ‘average ratings of 8 people’. To do so I draw 8 elements from a given interval and save them to a list. Then in position attribute of polygon for x axis, for each of the ratings I refer to the according element of the list by using: name_of_list[postion_of_element]. The value of y axis is constant. And that was working perfectly
Now, I want to upgrade my experiment and present 8 ratings for 3 different conditions:
- average ratings
- maximum ratings
- end ratings
But I want each condition to be displayed randomly. So far I managed to change displayed questions for each condition by making a loop and refering to Excel file and it is working. However, I struggle to change the x position of these 8 ratings according to the question that was chosen in each trial. What I want to achieve is to present in random order:
- question for average ratings and 8 bars (representing ratings) from average ratings list
- question for maximum ratings and 8 bars (representing ratings) from maximum ratings list
- question for end ratings and 8 bars (representing ratings) from end ratings list
I tried to add position of rating 1, 2, etc. to my Excel file as new column and refer in each column to the position of the item on according list (eg. visceralratingPlac[0]) and in position attribute refer to such column, but I got the error message that I am trying to use string instead of float.
Is there a possibility to change it to float or maybe there is another way of achieving what I need?
Although I work in Builder, I know a little bit of coding, so making changes in code does not frighten me
I attach the current Psychopy and Excel files, which work (version with manipulation of questions but without the manipulation of ratings):
manipQuestions.xlsx (9.7 KB) Position change.psyexp (159.3 KB)