Invalid/Incomplete Carmaker project directory
Show older comments
Due to some issue, I had to reinstall MATLAB R2021a. Before the re-installation, the Carmaker GUI would open using the Carmaker blockset. But, unfortunately, now the Error pops up stating: "Invalid/Incomplete Carmaker project directory". Please guide on how can i assign the directory for the Carmaker, or how to sort this error.
1 Comment
Liao
on 6 May 2025
Hej!
Have you solve this problem, I have met the same problem and I can't open the Carmaker from the Simulink Carmaker GUI block. But the strange is I can open it before in same way.It shows the same error now as you met. Do you remember how to solve this problem?
Answers (2)
Sanchari
on 14 Sep 2023
0 votes
Hello,
I understand that you want to resolve the error “Invalid/ Incomplete Carmaker project directory” that has occurred after reinstalling MATLAB R2021a.
To do so, please follow through the steps below:
- Verify compatible MATLAB version: Recheck Carmaker version compatibility with MATLAB version. You can find the compatibility in Carmaker Release Notes. MATLAB R2021a is compatible with Carmaker version 10.0 and above.
- Choose correct destination for Installation directory: Follow the instructions of IPGInstall ([AS1] [SM2] How to install CarMaker and other IPG Automotive software- https://ipg-automotive.com/fileadmin/user_upload/content/Download/PDF/Product_Info/IPG_Automotive_Installation_Dongle_License.pdf ). The destination directory you choose during the installation (Windows e.g., C:\ipg\etc; Linux e.g., /opt/ipg/etc) will be further referred to as <InstallationDirectory>.
- Verify successful configuration of Carmaker environment in MATLAB: After opening MATLAB, you need to make sure that your working directory is the “src_cm4sl” folder of your project directory. In this folder, there's a file called “cmenv.m” that you need to run. After it's run successfully, the MATLAB search path is configured, and CarMaker is connected.
- Verify Carmaker dependencies: When you run the “cmenv.m” file, ensure that all the dependencies for Carmaker were correctly installed as well.
- Use Carmaker GUI: after executing “cmenv.m”, open the “generic.mdl” to start working with CarMaker.
To add path of the project folder manually, go to Home Tab > Environment Section > Set Path. You can add the project directory along its subfolders to MATLAB.
Hope this helps!
Josip Kir Hromatko
on 6 Nov 2026 at 13:45
0 votes
Hello,
we faced the same error about an incomplete project directory and followed the instructions as in the answer by @Sanchari.
However, we also had to:
- Open the CarMaker GUI directly, not from Simulink.
- Choose the project directory containing the Simulink extras (i.e., your created project folder).
- Make sure that a test run is loaded, defining the vehicle, scenario, road etc. We used one of the example runs, mentioned in the Quick Start guide.
- Save the project and close the GUI. I assume that this makes a project folder "complete".
After that, we were able to start and connect to the CarMaker GUI directly from Simulink, and run the simulations as usual.
Categories
Find more on Large-Scale Modeling 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!