hello everyone , i want to ask you about this error and how to fix it
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Error reported by S-function 'sfun_rtlab_comm' in 'dj_1/SM_PV/OpComm/OpComm': The file '.\Opcommon\dj_1.Comm' was not created
i had model in simulink and work normaly , just whene i want to add the OpComm to the inputs of my model to run it on RT-LAB simulator
i had this message of error and whene i delete those OpComms the model work perfectly
So what should i do , i serched in the internet and couldn't find any solution
NB: those OpComm are mondatory to run the model in the RT-LAB
thanks

回答 (2 件)

SHUBHANKAN MUKHERJEE
SHUBHANKAN MUKHERJEE 2020 年 2 月 15 日
編集済み: SHUBHANKAN MUKHERJEE 2020 年 2 月 15 日

0 投票

Thank you for your query.
I am not exactly sure as to why this occurs, but in case your project file is on a different path then you might face this issue.
Try placing your Simulink (.mdl file) model in the RT-LAB folder on the C drive (C:\). It should resolve this issue.
Hope this helps.
Jaime Turanzas Solivellas
Jaime Turanzas Solivellas 2023 年 2 月 21 日

0 投票

Hello,
Iam going through the same problem but the proposed answer doesn`t solve it, My .mdl is in the proper path (workspace/folder of the project) as others projects that are working correctly.
Despite it's been a while since last reply, it would be great if someone know any other reason this is happening.
Thank you in advance

カテゴリ

ヘルプ センター および File Exchange で Schedule Model Components についてさらに検索

製品

リリース

R2018b

質問済み:

2020 年 2 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by