Simulink Test Manager throwing "block_diagram does not have a parameter named 'EnableUse​rReplaceme​ntTypes'" error

56 views (last 30 days)
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
MathWorks Support Team on 4 May 2020
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.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!