Posts: 22
	Threads: 11
	Joined: Sep 2018
	
Institution: Federal University of Santa Catarina
	
 
	
		
		
 
		02-11-2022, 04:24 PM 
	
	 
	
		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?
	
 
	
	
	
	
 
 
	
	
	
		
	Posts: 671
	Threads: 31
	Joined: Apr 2020
	
Institution: RWTH Aachen University
	
 
	
	
		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…
	
	
	
	
	
 
 
	
	
	
		
	Posts: 22
	Threads: 11
	Joined: Sep 2018
	
Institution: Federal University of Santa Catarina
	
 
	
	
		That's the phyphox file:
Refracao.phyphox
	 
	
	
	
	
 
 
	
	
	
		
	Posts: 671
	Threads: 31
	Joined: Apr 2020
	
Institution: RWTH Aachen University
	
 
	
	
		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…