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

10 次查看(过去 30 天)
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

采纳的回答

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 个评论
Aidan Kennedy
Aidan Kennedy 2018-1-11
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 2023-6-27
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multicore Processor Targets 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by