labstreaminglayer / pylsl

Python bindings (pylsl) for liblsl
MIT License
136 stars 57 forks source link

Changing outlet channel count without closing the process #78

Closed AntonelloBS closed 1 week ago

AntonelloBS commented 6 months ago

Hello, is there a way to update the channel count of a stream without having to stop a process? I am working on a GUI that let's change some device parameters (channel count and sampling rate) of a device. When I do that I would like to be able to change the outlet parameters without closing it or, if the latter is not possible, to close the outlet and open another one but when I call outlet.del() the process stops without giving any error (is this an expected behaviour?)

Thanks in advance for the help

cboulay commented 6 months ago

You cannot change a stream's primary metadata after it is created. You have to close it and create a new stream.

I don't know what outlet.del() is -- I would expect that to raise an attribute error. Or do you mean del outlet?

cboulay commented 1 week ago

Closed as stale.