Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial stream of data may be ignored #10

Open
bparks13 opened this issue Mar 25, 2024 · 0 comments
Open

Initial stream of data may be ignored #10

bparks13 opened this issue Mar 25, 2024 · 0 comments

Comments

@bparks13
Copy link
Member

Since the socket needs to be connected before acquisition can begin, it is possible for the socket buffer to fill up before the user can start acquiring or recording data, leading to missed data. This is particularly true for large streams of data that exceed 64kB per packet.

One possible workaround:
Initialization of the socket can be started when acquisition begins (possibly inside startAcquisition()), which would increase the time between pressing the acquisition button and data appearing, but should ensure that no data is missed if the initial stream of data must be recorded.

To allow the GUI can start acquiring data successfully, however, the socket connection must be tested in the node prior to starting acquisition, since the node currently would not allow acquisition to start without an active connection. This could be accomplished by adding a checkbox to defer socket initialization until acquisition, to make sure that the socket is active and ready to receive a connection when acquisition begins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant