Virtual Vehicle Composer model doesn't work

조회 수: 4 (최근 30일)
Ömer Ergün
Ömer Ergün 2024년 10월 19일
댓글: Ömer Ergün 2024년 11월 7일
When I build a EV model in Virtual Vehicle Composer app and try run it, it gives always this error
And when I perform dependency analyzer on the project it seems like there are some missing files as shown below:
Can anyone know how to fix these errors?

답변 (1개)

Kothuri
Kothuri 2024년 11월 6일
The errors you are facing while building EV model using Virtual Vehicle Composer app indicates that:
  • “fatal error U1077” and “error C2099: initializer is not a constant”, indicates an issue with the compilation of C/C++ code within the Simulink model. This can happen due to missing dependencies or incompatible settings.
  • “foundation.e...vapor” file in the dependency analyser, suggest that part of the required libraries or files are missing.
  • “TestScript.m” file is calling a function or script named “setParamforManeuver.m”, which in turn relies on “ConfigInfos.TestPlan” and “setModelParameter”. The yellow warning symbols indicate that these dependencies are either missing or inaccessible.
You can follow the below steps to rectify the errors:
  • Ensure that “autoblkVVCO...m”, “vdynblksdrvconfig.m”, and “NoThermalControl.slx” files and the above mentioned files are available in the MATLAB path or project folder.
  • Use the Dependency Analyzer to identify any missing files or broken links. You may need to add the missing libraries or paths to the MATLAB path. Right-click on the missing items in the Dependency Analyzer and try to locate them manually.
  • After making the changes, re-run the Dependency Analyzer to confirm that the issues are resolved.
  • Ensure that MATLAB is configured with a compatible C/C++ compiler. Run “mex -setup” in MATLAB to confirm this. In some cases, selecting a different compiler version might help in resolving the compatibility issues.
  • Ensure that each referenced model is set up correctly and can be built independently.
You can refer the below documentation link for more info on “mex -setup”
  댓글 수: 1
Ömer Ergün
Ömer Ergün 2024년 11월 7일
Thank you for your answer, but I already solved the issue. The problem wasn't stem from missing files in the Depend. Anal. but it was from the compiler I used. Because Matlab use C++ compiler as a default some files in the project didn't generate. So I changed my compiler from C++ to MinGW and the project had run without any issue even though there still are same missing files in the Depend. Anal.

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

카테고리

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

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by