フィルターのクリア

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 Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by