This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Measurement of the resonance curve (Acoustics)
Nice curve!

I see in the code that you played a bit with the analysis sleep time, presumably to increase the speed of the experiment. There is a snag if you want to pursue this: the code tries to detect the first instance of the analysis in order to know that data should not be saved (since the measurement is made for the frequency that was calculated in the previous analysis run). Unfortunately detecting the first run is not that easy because Android and iOs handle it differently (there is a thread on that topic somewhere in the forum). In the end, I had to use a combination of factors, one of which being the elapsed time. Changing the sleep time will certainly have side effect on the detection of the first run...

One way would be to have two different programs, one for iOs and one for Android, and there you could play with the sleep time more easily.
the other way would be to find a better first run determination, one that does not use time, but still works on iOs and Android. I would be happy to learn about it!



Messages In This Thread
RE: Measurement of the resonance curve (Acoustics) - by fbouquet - 05-28-2020, 09:23 AM

Forum Jump: