How to extract data from adicup 360

hi I'm using the ADICUP360 with an ADXL355-PMDZ accelerometer and the CrossCore to develop.

As a basis I am using the example proposed here

which when removing it through the console shows me the data of the axes, however I would like to know how to extract that data to an external file