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)
#31
Hi,
here is somewhat modified version with indication of the resonance frequency...

   


Attached Files
.phyphox   acoustic_resonance_4-1.phyphox (Size: 8.9 KB / Downloads: 4)
Reply
#32
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!

Cheers,

Fred
Reply
#33
(05-28-2020, 09:23 AM)fbouquet Wrote: 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!

Yes, I intent to change the iOS implementation to follow the Android version more closely and to allow setting attributes to determine when analysis modules should be executed. The idea is to allow you to specifically define that an analysis module is only executed before start is being pressed, in the first run after start has been pressed or in any subsequent run. I hope to get it into the next update along with the new tone generator and a rather long list of minor optimizations.
Reply


Forum Jump: