phyphox Forums
Change Sample Rate? - Printable Version

+- phyphox Forums (https://phyphox.org/forums)
+-- Forum: Discussion (https://phyphox.org/forums/forumdisplay.php?fid=1)
+--- Forum: General (https://phyphox.org/forums/forumdisplay.php?fid=3)
+--- Thread: Change Sample Rate? (/showthread.php?tid=1725)



Change Sample Rate? - bcherepy - 03-31-2023

I would like to measure long term changes in atmospheric pressue and therefore I don't need a high sampling rate. Is wading through the complexities of XML the only way to change the rate? And what is the default? I see references to the rate in Hz, but does that mean?


RE: Change Sample Rate? - Jens Noriʇzsɔɥ - 03-31-2023

You could add a so-called “simply experiment” by tapping “+” in the main menu and entering a rate (far) below 1 Hertz (per second). The default is as fast as possible, whatever that means for a specific sensor.


RE: Change Sample Rate? - bcherepy - 03-31-2023

(03-31-2023, 01:16 PM)Jens Noritzsch Wrote: You could add a so-called “simply experiment” by tapping “+” in the main menu and entering a rate (far) below 1 Hertz (per second). The default is as fast as possible, whatever that means for a specific sensor.

Thank you for the reply. I should have mentioned I am using PhyPhox with a databot and I don't see how to create a databot experiment in the app.


RE: Change Sample Rate? - Jens Noriʇzsɔɥ - 04-03-2023

Ok, you're right: that's not possible.

There are three options (for two you need to ask the databot manufacturer):
1. Configure the rate of notifications on the databot
2. Poll the databot if it supports that. Then you could set a rate in the .phyphox file format, see https://phyphox.org/wiki/index.php/Bluetooth_Low_Energy
3. Create a temporary buffer for the data of length 1, set the “sleep” attribute of the “analysis” block to the desired time, and add an expression that appends the temporary to the original buffer, see https://phyphox.org/wiki/index.php/Phyphox_file_format