Simulink Test Manager throwing "block_diagram does not have a parameter named 'EnableUserReplacementTypes'" error
26 views (last 30 days)
Show older comments
MathWorks Support Team
on 4 May 2020
Edited: MathWorks Support Team
on 4 Feb 2025
I have been running some back-to-back SIL equivalence tests using Simulink Test. The tests are being run from a single top-level model with multiple lower-level subsystems and model references that all have internally saved test harnesses.
All of the models and harnesses compile and run fine individually, and the SIL tests seems to work for some harnesses but not for others. In the tests that fail, I see the following error in the test manager:
An error occured ('MATLAB:MException:MultipleErrors') when calling 'sim':
block_diagram does not have a parameter named 'EnableUserReplacementTypes'
Error while bringing model references of model 'my_test_harness' up to date:
block_diagram does not have a parameter named 'EnableUserReplacementTypes'
Accepted Answer
MathWorks Support Team
on 17 Jan 2025
Edited: MathWorks Support Team
on 4 Feb 2025
In this case, the error is resulting from a difference in the TLC file used to generate code for SIL testing. Some of the models were configured to use GRT.TLC, while others were configured for ERT.TLC. Switching the TLC files for all models to ERT resolved the issue.
This type of error may happen for a variety of reasons, such as when a model has been migrated from release to release, or when model configuration settings differ between different model references in the same hierarchy.
Most often, the issue can be resolved by closely inspecting the configuration parameters, or migrating the models to use a shared configuration set reference.
To access the release-specific documentation, execute the following command in the MATLAB R2020a command window:
>> web(fullfile(docroot, 'simulink/ug/sharing-a-configuration-set-between-referenced-models.html'))
Please use the below link to search for the required information in the current release:
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!