-
Notifications
You must be signed in to change notification settings - Fork 1
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
sampling frequency #2
Comments
Hey @mariaf3s, because the app wraps godirect-py, theoretically, yes: https://github.com/VernierST/godirect-py/blob/main/godirect/device.py#L141 I found that this would work not very reliably on the devices i tested a couple of years ago. I therefore did not implement a CLI option to configure the sampling rate of the device - but that should not be too difficult to implement. I currently have no longer any access to a Vernier device, which i would need to test and develop. Therefore you might to try to implement this functionality yourself. |
thanks for responding! OK, that may be a little outside of my experience level but I'm open to try, any idea of where to point me to get started? |
Certainly. According to godirect-py, one can give a This method is called in verniersl during the starting of the Outlet: https://github.com/labstreaminglayer/app-vernier/blob/master/verniersl/__main__.py#L153 If you add a CLI argument like
and give this to the Outlet instantiation as an additional argument https://github.com/labstreaminglayer/app-vernier/blob/master/verniersl/__main__.py#L281
In Outlets init, store the rate as self.rate and in https://github.com/labstreaminglayer/app-vernier/blob/master/verniersl/__main__.py#L152 it is then passed over to
(obviously, adapt Good Luck! |
Hello,
In the vernier graphical analysis app there is a way to increase the sampling frequency, but is there a way to do this through python for use with LSL? Thank you!
The text was updated successfully, but these errors were encountered: