Mastering Code Components in PsychoPy: Build a Visual Search Task from Scratch!

preview_player
Показать описание
Want to learn how to use code components in PsychoPy?
In this tutorial, we guide you through the process of building a Visual Search Task from scratch, using PsychoPy's code components to save time and make your experiments more efficient. If you’ve ever struggled with a project that requires dozens of components, this is the perfect starting point to learn how to use Python code to streamline your experiment design.

In this video, we cover:

🔧 Why use code components in PsychoPy? (00:00)

🧠 Building a visual search task step-by-step (01:06)

💻 Compiling experiments to Python (03:36)

🔄 Using Python code in code components (04:59)

🔁 Introduction to for loops to create multiple stimuli (07:20)

🎨 Drawing many stimuli with AutoDraw (08:20)

🎯 Setting random locations for stimuli using random() (11:34)

🖱️ Adding a mouse response to your task (12:50)

Whether you're building a cognitive task or creating interactive psychology experiments, using code components will help you build tasks more efficiently and with greater flexibility.

If you found this video useful, leave us a comment with what you'd like to see next, or share any questions you have.

Рекомендации по теме
Комментарии
Автор

Great video! Thank you for posting this. I ended up trying my own version without seeing this with a million image files and locations in excel, and the way you did it was much simpler and time-efficient.

Hsusoekene
Автор

Thank you. Why u have no tutorial for complete beginners for coding in PsychoPy

unknownstudent
Автор

how do i insert the n_distract in excel file to the code?

sharikanasir
Автор

how do you run experiments without adding the participant/session?

joaoqueiroz
welcome to shbcf.ru