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: