phyphox / phyphox-android

Physical Phone Experiments
GNU General Public License v3.0
319 stars 42 forks source link

how is memory consumption? #40

Closed xiaolongwu0713 closed 1 month ago

xiaolongwu0713 commented 1 year ago

Dear, Thanks for open source this great app. But how is memory consumption? I am afraid it will crash my phone if I use it for too long time and all my memory will be consumed. It would be much safer if it just keeps 10s or so data, something like incremental recording?

Best Regards

Staacks commented 1 year ago

Indeed, all data is kept in RAM, so eventually you may run out of memory. You can set up a measurement configuration with a limited number of data points using our web editor (https://phyphox.org/editor) or by manually creating a XML file. Since I do not know what exactly you want to measure, I can only refer you to the XML files of all experiments included in phyphox: https://github.com/phyphox/phyphox-experiments

The trick is to change the size of the "data containers" from 0 (= unlimited) to a specific number of data points. In the editor this is done by clicking on the connecting lines. If you tell me what you need exactly, I can give more specifics.

(Regarding the editor: It should work perfectly for your use case, but be aware that it is a bit outdated and will be replaced by a new one soon.)