Store and re-use data from protected model

I have to share a protected model to a third party.
In the protected model I have some data store memory and signals which can be open to the third party.
I want to store these values at the end of simulation and initialize the simulation from the same values.
Currently logging gets disabled after adding protection.

 Respuesta aceptada

Ayush Singh
Ayush Singh el 16 de Feb. de 2024
Editada: Ayush Singh el 16 de Feb. de 2024

0 votos

Hi Shivam
I assume you have some data store memory and signals which you want to store at the end of simulation and use those values for initialization.
Signal logging being disabled for a protected model is expected behaviour.
However, there are three ways to let the end user access internal signals in the Protected Model:
  1. Bring the signal to the top level using an output port on the Model.
  2. Use a "To File" block inside the Model to log the signals
  3. Use a "To Workspace" block inside to log the signals
I hope the above information helps.

2 comentarios

Shivam garg
Shivam garg el 16 de Feb. de 2024
Hi Ayush,
Yes that is what I am trying to do. Let me try the To Workspace block. will it work even inside protected model?
Ayush Singh
Ayush Singh el 16 de Feb. de 2024
Yes 'To Workspace' will work for protected model

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Prepare Model Inputs and Outputs en Centro de ayuda y File Exchange.

Productos

Versión

R2023a

Etiquetas

Preguntada:

el 13 de Feb. de 2024

Comentada:

el 16 de Feb. de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by