Azzera filtri
Azzera filtri

Error when running Simulink

9 visualizzazioni (ultimi 30 giorni)
Darragh
Darragh il 7 Giu 2023
Risposto: Cyrus Monteiro il 29 Giu 2023
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.

Risposte (1)

Cyrus Monteiro
Cyrus Monteiro il 29 Giu 2023
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.

Categorie

Scopri di più su Programmatic Model Editing in Help Center e File Exchange

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by