필터 지우기
필터 지우기

Error when running Simulink

조회 수: 9 (최근 30일)
Darragh
Darragh 2023년 6월 7일
답변: Cyrus Monteiro 2023년 6월 29일
I am having trouble running my system I am using the simscape battery package to design the system. When i run the code i am getting this error
Error due to multiple causes.
Caused by:
Please leave suggestions. I have also attacthed the file below.

답변 (1개)

Cyrus Monteiro
Cyrus Monteiro 2023년 6월 29일
The error message you provided suggests that there is an issue with the parameter 'SOC_vecCell' in the Simulink model. The error states that it is unable to resolve the name 'ModuleType1.SOC_vecCell'. This typically occurs when the parameter or variable is not defined or cannot be found in the Simulink model.
To resolve this issue, you can try the following steps:
1. Check if the parameter 'SOC_vecCell' is defined correctly in the Simulink model. Make sure it is spelled correctly and matches the expected name.
2. Verify that the 'ModuleType1' block exists in the Simulink model and that it has the parameter 'SOC_vecCell' defined within it. Ensure that the block is connected properly and has the correct parameter values.
3. If the 'ModuleType1' block is part of a custom library or package, ensure that it is properly imported or added to the Simulink model. Check if any necessary dependencies or libraries are missing.
4. Double-check the MATLAB workspace to ensure that the variable 'SOC_vecCell' is defined and accessible. Make sure it is defined before running the Simulink model.
5. If the 'SOC_vecCell' parameter is expected to be defined in an external file or script, make sure that file is properly referenced or included in the Simulink model.
If none of these steps resolve the issue, it might be helpful to provide more details about your Simulink model, the specific block causing the error, and any additional relevant information.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by