필터 지우기
필터 지우기

How to set same configuration for parent and reference models

조회 수: 23 (최근 30일)
Tejas
Tejas 2023년 11월 3일
댓글: Tejas 2023년 11월 22일
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?

답변 (1개)

T.Nikhil kumar
T.Nikhil kumar 2023년 11월 22일
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
Tejas
Tejas 2023년 11월 22일
Thanks a Lot for the feedback and explanation..... it's working now, just created new reference and propogated to reference models.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Create Large-Scale Model Components에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by