phyphox Forums

Full Version: Help with button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I´m creating a refraction experiment and need to measure the smartphone angle based on the accelerometer values.  I add two buttons to the screen, one to record the incident angle and the other to the refracted angle. 
I tried this approach:
Phyphox_Analysis

But the data does not persist in the graph. 
Does anyone know how can I fix this?
Could you share the .phyphox file? There is happening quite a lot behind the scenes, for instance, the effect of the “clear” attribute on writing to buffers: “true” erases the previous data…
That's the phyphox file:
Refracao.phyphox
You apparently never clear the Action buffers so data is written into output on each run of the analysis block. After some time it is simply full and the data gets pushed out. This gets even worse as the analysis block does not pause…