How to set same configuration for parent and reference models

16 views (last 30 days)
Error:
The setting for the property 'Use division for fixed-point net slope computation' in the 'Math and Data Types' page of the model configuration parameters dialog does not match between the parent model 'Main_model' and the referenced model 'input_model' referenced by the Model block 'Main_model/input_model'. The parent model's setting is 'on' and the referenced model's setting is 'off'
I tried setting same configuration between parent modela and reference model through Model explorer(data dictionary). In the main model configuration, I tried "propogared to referenced models" setting. But still I'm getting such errors. How can I make same configuration setting for both parent and reference models?

Answers (1)

T.Nikhil kumar
T.Nikhil kumar on 22 Nov 2023
Hello Tejas,
As per my understanding, you are facing an error message saying that there is discrepancy in the 'Use division for fixed-point net slope computation' field in the 'Math and Data Types' section of the model configuration parameters.
For simulations in normal or accelerator mode, it is required that a parent model and referenced model must be configured to perform Fixed-Point Designer net scaling computations in the same way. Hence, you receive this error when both configurations are different.
One possible way you can try to resolve this error is by explicitly setting this configuration parameter in the referenced model independently. Follow the below mentioned steps to manually set the parameter:
  1. Open the ‘Model Explorer’ and navigate to the configurations section of your referenced model.
  2. Right click on the active configuration and select ‘Open’ to open the referenced model’s configuration parameters.
  3. Set the 'Use division for fixed-point net slope computation' field to ‘On’ as per your parent model.
Alternatively, you can change the parameter of your parent model to match your referenced model as well in a similar way.
Refer to the following documentation to learn more about setting configuration Parameters for model referencing - https://www.mathworks.com/help/simulink/ug/set-configuration-parameters-for-model-referencing-1.html
You can also try creating a configuration reference and sharing it across all referenced models for uniformity throughout. Refer to this documentation to understand more about it.
Hope this helps!
  1 Comment
Tejas
Tejas on 22 Nov 2023
Thanks a Lot for the feedback and explanation..... it's working now, just created new reference and propogated to reference models.

Sign in to comment.

Categories

Find more on Modeling in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!