Hi @xgy_upc,
You can capture and log variables values to a file using Data Capture functionality. It is available on both Oscilloscope and Recorder. You can access it from Scope/Recorder properties (right click on the corresponding project tree item or directly on the chart and select Properties... from the context menu).
In the last tab (Data Capture) you can specify where/how the values should be logged.

Regards,
Iulian