Error compiling simscape network
Show older comments
Dear Mr
i have this error message.
how i can fix it please.
Error compiling Simscape network for model HEV_SeriesParallel. Caused by: ['HEV_SeriesParallel/Electrical/System Level/DC-DC Converter/Thermal Model/Thermal Mass']: Type mismatch for equation. The left hand side of the equation is {[1x1 double], 'C'} and the right hand side of the equation is {[1x1 double], 'K'}. T = {[1x1 double], 'C'} M.T = {[1x1 double], 'K'} In foundation.thermal.elements.mass (line 45)
4 Comments
Ameer Hamza
on 21 Apr 2018
It is easy for other people to understand your problem if you can attach the model file or include a screenshot of your model. It is very difficult to debug without knowing what you are trying to do.
Ameer Hamza
on 21 Apr 2018
This model has several versions. I ran the one in HEV_SeriesParallel_R18a folder and it is working fine on my machine. Can you specify which version you are trying to run?
aymen
on 21 Apr 2018
Ameer Hamza
on 21 Apr 2018
try following steps:
- run following commands to restore MATLAB paths and clear workspace.
clear all; path(pathdef); clc;
You might also try to restart the MATLAB.
- Add only HEV_SeriesParallel_R14a folder and all of its subfolders to MATLAB path, remove all other versions from MATLAB path. For this, you might want to delete remaining versions if you don't intend to use them now.
- Run the script 'startup_HEV_Model.m' in HEV_SeriesParallel_R14a and run the simulation.
Answers (2)
aymen
on 21 Apr 2018
0 votes
aymen
on 21 Apr 2018
0 votes
2 Comments
aymen
on 21 Apr 2018
Ameer Hamza
on 21 Apr 2018
Please refer to comment section of your question and avoid posting your comments as answers. This creates confusion for other people searching for the same problem.
Categories
Find more on Troubleshooting in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!