# \#multithreading

**URL:** https://discourse.psychopy.org/tag/multithreading/31.md

[Latest](https://discourse.psychopy.org/latest.md) · [Categories](https://discourse.psychopy.org/categories.md) · [Tags](https://discourse.psychopy.org/tags.md)

---

## [How to Run Data Collection in the Background with asyncio](https://discourse.psychopy.org/t/how-to-run-data-collection-in-the-background-with-asyncio/48349)

<div class="topic-metadata">

**Author:** [@seth.winward](https://discourse.psychopy.org/u/seth.winward)\
**Replies:** 0\
**Last updated:** [November 3, 2026, 6:47pm UTC](https://discourse.psychopy.org/t/how-to-run-data-collection-in-the-background-with-asyncio/48349 "2026-11-03T18:47:06Z")

</div>

I currently have a working PsychoPy experiment that I am trying to integrate heart rate recordings into using Polar H10 sensors. I am using a Python package called bleakheart that streams data from the sensor using an as…

---

## ["AttributeError" when using PsychoPy and threading](https://discourse.psychopy.org/t/attributeerror-when-using-psychopy-and-threading/18431)

<div class="topic-metadata">

**Author:** [@mgmussi](https://discourse.psychopy.org/u/mgmussi)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 8:21pm UTC](https://discourse.psychopy.org/t/attributeerror-when-using-psychopy-and-threading/18431 "2024-02-26T20:21:19Z")

</div>

I’m trying to create an application for BCI experiments. To make sure things do not get delayed, I’m trying to implement all the steps in threads. My first simple PsychoPy program worked well, but as soon as I tried to s…

---

## [Playing a repeating sound in a random time interval](https://discourse.psychopy.org/t/playing-a-repeating-sound-in-a-random-time-interval/27045)

<div class="topic-metadata">

**Author:** [@JDavid17](https://discourse.psychopy.org/u/JDavid17)\
**Replies:** 3\
**Last updated:** [June 12, 2023, 12:19pm UTC](https://discourse.psychopy.org/t/playing-a-repeating-sound-in-a-random-time-interval/27045 "2023-06-12T12:19:27Z")

</div>

If this template helps then use it. If not then just delete and start from scratch. OS (e.g. Win10): Windows 10 PsychoPy version (e.g. 1.84.x): v2021.2.3 Standard Standalone? (y/n) If not then what?:y What are you t…

---

## [Sounds in background of visual task](https://discourse.psychopy.org/t/sounds-in-background-of-visual-task/24687)

<div class="topic-metadata">

**Author:** [@Ana\_Todorovic](https://discourse.psychopy.org/u/Ana_Todorovic)\
**Replies:** 0\
**Last updated:** [August 26, 2021, 12:06pm UTC](https://discourse.psychopy.org/t/sounds-in-background-of-visual-task/24687 "2021-08-26T12:06:20Z")

</div>

Hello everyone, I was wondering whether it is possible to play a sound loop in the background of a visual task, if the visual task is made in Builder but the sounds are created using code. I have been looking for solut…

---

## [Speeding up with Threading or Multiprocessing?](https://discourse.psychopy.org/t/speeding-up-with-threading-or-multiprocessing/1819)

<div class="topic-metadata">

**Author:** [@FabiolaBusch](https://discourse.psychopy.org/u/FabiolaBusch)\
**Replies:** 3\
**Last updated:** [January 31, 2017, 12:02am UTC](https://discourse.psychopy.org/t/speeding-up-with-threading-or-multiprocessing/1819 "2017-01-31T00:02:34Z")

</div>

Hey there, I am working on a Psychopy programm on a windows machine which presents similar stimuli in a row. So, the programm reads in a text file with some parameters about the shape of the stimulus (e.g. rectangle-s…

---

## [Quit on error when multithreading with ResponseEmulator](https://discourse.psychopy.org/t/quit-on-error-when-multithreading-with-responseemulator/1434)

<div class="topic-metadata">

**Author:** [@erik.kastman](https://discourse.psychopy.org/u/erik.kastman)\
**Replies:** 3\
**Last updated:** [November 10, 2016, 1:42am UTC](https://discourse.psychopy.org/t/quit-on-error-when-multithreading-with-responseemulator/1434 "2016-11-10T01:42:49Z")

</div>

Hi all, I'm trying to do real integration testing of several different experiments, using sample responses and @jeremygray 's ResponseEmulator. This works great when it works, but if I have any errors in the task that …
