How to save data from OpenEca Matlab project?

Hi all.
I would like to know if there is a way to save the values on output when the file run the Program.m in running. For example, I want to save the values
of the voltage module but at the moment I can only view them on the window and not save them in the workspace to be able to treat them offline when I stopped the simulation and then the execution of the algorithm.
What should I write as code in the TO DO of the Algorithm.m to save the values continuously?
Thank you in advance…

Might be easier to use openHistorian to save streaming data, then setup a historical “replay” subscription from openECA for old values.

See this thread:

Thanks for the answer. I know the features of opneHistorian but it is not useful for my purpose. My goal is to do analysis with algorithms, external to that provided by Openeca (Algorithm.m) in Matlab with the data flows transferred from Openeca to Matlab, so I want to have the data physically in Matlab to be able to use them. In addition, I would like to know if there is and where I can find the Matlab project in which these transferred data are managed.

Thank you for your time.

Did you try saving the data as a MAT file?
It is also possible to save to a variety of other file format - depending on the file size and your needs - from HDF and XML, to Parquet and other formats. Look here:

Thanks for the answer, I will try it.