Error reported by S-function 'sfun_rtlab_comm'

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

Answers (2)

SHUBHANKAN MUKHERJEE
SHUBHANKAN MUKHERJEE on 15 Feb 2020
Edited: SHUBHANKAN MUKHERJEE on 15 Feb 2020
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.
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

Categories

Products

Release

R2018b

Community Treasure Hunt

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

Start Hunting!