Selecting a certain number of stimuli out of a list

OS (e.g. Win10): macOS Sierra
PsychoPy version (e.g. 1.84.x): 1.84.2
Standard Standalone? (y/n) Y

Hi all,

for my experiment I need to present a subset of 200 stimuli out of a list of ~300 stimuli. I guess there is a way to terminate the routine, but I couldn’t figure out how to do in the Builder/Coder. If there is, can anyone give me a hint about that?

Thanks!

There is a Selected rows field in the loop dialog.

I don’t think that’s what I need. The words are listed in one of the column of the csv file.

I guess I need something like suggested in the tutorial here, but I don’t know where to put the code strings. Can someone help?

Thanks!

Which is exactly why you might just select values from 200 of the rows in that column.

I think I was unclear. What I need to do is the following.

My routine now randomly presents all the 200 word on my list. What I need to do, is make it stop after 200 words are presented, and go ahead to the next steps of the experiment.

I tried to use the Selected rows field, but it gives me a error.