I’m not certain what you mean by this, or what you’re trying to achieve.
I haven’t used our Ping Sonar to study tides before, so I don’t have code targeted to that use-case. If you’re using Ping Viewer it will automatically log the profile and distance data in the Sensor_Log
folder, which you can replay with Ping Viewer or retrieve for analysis (with code). Alternatively you can use code to control the sensor, in which case you can record the data to a csv as it gets created.