Conditions in sequential order of presentation and changing every X images

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

OS (e.g. Win10): Win11
PsychoPy version (e.g. 1.84.x): v2024.2.1.post4
Standard Standalone? (y/n) If not then what?:
**What are you trying to achieve?: My experiment needs conditions to change their order every certain number of images. That is, I have four Likert-type scales that I need to change their presentation order sequentially every for example 10 images (these images have to be random and not repeated in each change of order).

Note: There is no correct answer to the scales, since it is the emotional assessment of the participant. In addition, the 4 scales have a pre-established counterbalance, that is, the scales have to sequentially follow a specific presentation in each change of order.

**What did you try to make it work?: Try creating one “chose” Excel file, and four Excel files for the conditions.

**What specifically went wrong when you tried that?: The scales did not appear after the presentation of the first image. Errors: trials_fileTS = data. TrialHandler2 and self.nReps = int(nReps)