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

10 views (last 30 days)
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

Accepted Answer

Emmanouil Tzorakoleftherakis
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 Comments
Aidan Kennedy
Aidan Kennedy on 11 Jan 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 on 27 Jun 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

Sign in to comment.

More Answers (0)

Categories

Find more on Event Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!