psychopy.org | Reference | Downloads | Github

Keeping stimuli consistent across 2 tasks

My experiment has 2 phases - a encoding task performed first, then a recognition task. In the encoding task, I have four conditions and I want to present images one at a time per trial. These images will be selected randomly from different categories. For each condition, the number of images selected from each category will vary, and the number of times each image is presented will also vary. This is the tricky part for me.

Then in the recognition task, I want to display four images per trial - one of which is an image previously presented in the encoding task.

What would be the best way of structuring this experiment?