필터 지우기
필터 지우기

Error compiling simscape network

조회 수: 26 (최근 30일)
aymen
aymen 2018년 4월 21일
댓글: Ameer Hamza 2018년 4월 21일
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
aymen
aymen 2018년 4월 21일
Thank you Ameer actually i use the version of R2014 and may machine compose matlab R2016A.
Ameer Hamza
Ameer Hamza 2018년 4월 21일

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.

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

답변 (2개)

aymen
aymen 2018년 4월 21일
tHIS IS A SCREENSHOT FOR THE APPEARED PROBLEM.

aymen
aymen 2018년 4월 21일
Also you can run this code and see directly the problem
https://www.mathworks.com/matlabcentral/fileexchange/28441-hybrid-electric-vehicle-model-in-simulink
  댓글 수: 2
aymen
aymen 2018년 4월 21일
I have used the version 2014B on matlab R2016a
Ameer Hamza
Ameer Hamza 2018년 4월 21일

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.

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

카테고리

Help CenterFile Exchange에서 Troubleshooting에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by