Borrar filtros
Borrar filtros

compiling workspace variables in a model (protected or unprotected)

3 visualizaciones (últimos 30 días)
Micah Erickson
Micah Erickson el 11 de Abr. de 2016
Comentada: Mariana el 11 de Jun. de 2020
I'm trying to make a packaged protected (compiled) model for use by a third party and would like to incorporate the required workspace parameters in the model file provided. Is there an option for embedding the required workspace parameters into the protected model?

Respuestas (1)

Stefan Raab
Stefan Raab el 19 de Abr. de 2016
Editada: Stefan Raab el 20 de Abr. de 2016
Hello,
I suppose you can use the model workspace. You can achieve this by opening the Model Explorer (Ctrl + H) in your model. Click on the Base Workspace in the left tree and select, drag and drop (but then they are also removed from the BW) or copy the desired values from the middle panel to the Model Workspace of your model in the left tree. When you use parameters in a model, Simulink will first look for them in the Model Workspace.
Kind regards, Stefan
  1 comentario
Mariana
Mariana el 11 de Jun. de 2020
I have tried that. If I do that I can run my model and the variables are used, but I am not able to compile the model with Simulink Coder. Is there a limit size of the variables stored into simulink's workspace?

Iniciar sesión para comentar.

Categorías

Más información sobre Model References en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by