Delayed output stimulations with Python box
Posted: Thu Jan 05, 2023 8:51 am
Hi,
I am currently developping a Pyhton box to send a stimulation when the input signal exceeds a certain threshold (also calculated in the box).
When testing with a file already acquired, stimulations are sent with a delay that increases over time. To explore this issue, we ran some tests with a simpler Python box that simply returns a new stimulation when it receives one. In this case, the delay is still present and increasing with time, and we noticed that it was depending on chunk size. However, this delay is not observed when we use in input sinus oscillator and clock stimulator boxes instead of the file reader.
Does anyone know what could cause this delay?
Thank you!
I am currently developping a Pyhton box to send a stimulation when the input signal exceeds a certain threshold (also calculated in the box).
When testing with a file already acquired, stimulations are sent with a delay that increases over time. To explore this issue, we ran some tests with a simpler Python box that simply returns a new stimulation when it receives one. In this case, the delay is still present and increasing with time, and we noticed that it was depending on chunk size. However, this delay is not observed when we use in input sinus oscillator and clock stimulator boxes instead of the file reader.
Does anyone know what could cause this delay?
Thank you!