Back to Browse

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

12.2K views
May 20, 2022
14:20

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. Need further help? Contact us at [email protected] for task creation assistance. Learn more about Open Science Tools: OpenScienceTools.org

Download

0 formats

No download links available.

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