mex function co-simulation directory error

조회 수: 4 (최근 30일)
Joe Cullen
Joe Cullen 2018년 9월 12일
댓글: Joe Cullen 2020년 12월 17일
I am trying to run a co-simulation with a modeling software called AMESim, which generates a *.mexw64 file. I'm using an s-function as the interface to the mex file in Simulink. The simulation works just fine when the models are all in the current working directory. However, when i put them down one level in the model architecture (one folder deep, which is on the matlab path) the so-simulation fails with the following error:
Error in 'PlantModel/S-Function' while executing C MEX S-function 'PlantModel_', (mdlInitializeConditions), at time 0.0. Caused by: Simcenter Amesim mexfunction PlantModel_ did an abnormal exit!_
Note: PlantModel_ is the *.mexw64 file
  댓글 수: 2
Xiongzhe Hu
Xiongzhe Hu 2020년 12월 17일
Did u solve the problem?I met the same one today.
Joe Cullen
Joe Cullen 2020년 12월 17일
No, I have not found a solution other than to change the matlab directory to where the amesim model is stored or move the amesim model up to working directory folder.

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

답변 (0개)

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by