How to run Carsim in MATLAB? I have some errors

18 ビュー (過去 30 日間)
YOUNGIN OH
YOUNGIN OH 2021 年 4 月 14 日
回答済み: Tejas 2025 年 7 月 16 日
Hi, Teacher. I study about vehicle in University
I wanna run carsim in MATLAB. But It is some error
Error is :
Error using actxserver (line 93)
Server creation failed. Invalid ProgID 'CarSim.Application'.
Error in T_main (line 6)
h = actxserver('CarSim.Application');
This is code:
h = actxserver('CarSim.Application');
%h = actxGetRunningServer('CarSim.Application');
%% Simulation and Post-process
h.GoHome();
output_fold = h.GetCurrentDataSetID;
output_path = h.GetDatabaseFolder;
current_path = [output_path 'Results' '\' output_fold '\'];
file_name = 'LastRun.csv';
res_file = [current_path file_name];
What is problem??? How to solve this error????????
Thank you,

回答 (1 件)

Tejas
Tejas 2025 年 7 月 16 日
The above-error message might occur if "CarSim" is not installed. Installing "CarSim" on the system in use should resolve the issue.
Incase the issue persists, reach out to Mechanical Simulation Corporation, as mentioned in this MATLAB answer: https://www.mathworks.com/support/search.html/answers/451571-how-can-i-integrate-carsim-trucksim-bikesim-with-matlab-simulink.html .

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by