Rapid Accelerator: Parameter value too large to download to target application

15 visualizaciones (últimos 30 días)
I am receiving this error when execution my model in Rapid Accelerator mode: 'Parameter value is too large to download to target application'.
A similar question has been asked before https://www.mathworks.com/matlabcentral/answers/319787-rapid-accelerator-disable-tunable-parameter-issue-with-sizes-of-parameters but the suggested answer to drag and drop the values into the model work space is not a sufficient solution.
One of my first questions is should I expect this warning to affect the results of my simulation? And if so, what are my options to address the warning?
Thank you

Respuesta aceptada

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis el 8 de En. de 2018
Hi Aidan,
This warning would most likely affect your results. Here are a few possible workarounds:
1. Simulate the model using the "sim" command
sim('vdp', 'SimulationMode','rapid');
2. Ensure that referenced parameters used in the model are < 2kB large when using rapid accelerator mode.
3. Move parameters into the Model Workspace, which places certain tunability limitations on these parameters and allows the model to run without warning. This can be achieved either manually through the Model Explorer or programmatically through callbacks using Simulink.ModelWorkspace
4. Place a mask on the blocks using the parameters and manually select the parameters passed in through the mask as non-tunable (uncheck the tunable setting).
  2 comentarios
Aidan Kennedy
Aidan Kennedy el 11 de En. de 2018
Excellent answer, thank you. I do question why there is a 2kB limit on referenced structures used in the model when executed thought the Simulink UI?
Mike Sprengel
Mike Sprengel el 27 de Jun. de 2023
I realize this is an old thread, but I ran into a similar problem today and was able to work around the issue by changing a configuration parameter (which may introduce other limitations, but was effective for my application where I was passing a large parameter structure through a block mask): Configuration Parameter > Code Generation > Default Parameter Behavior > Inlined

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by