You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The capture method for acquiring time critical datasets from sensors is currently a blocking call. This freezes up GUIs that may become unresponsive if acquisition length is of the order of seconds.
I propose to modify the same into three separate functions
Function to initialize the acquisition process. Arguments will include Address of the I2C sensor, Address of the sensor's register to start reading from, number of bytes to read per sample, total number of samples, and timegap.
Function to fetch the buffer after it is filled
Function to interpret the fetched buffer. This will handle data conversion into int/float, and return time, data arrays