Getting an error when running a simulation 3d scene configuration block with Simulation 3d vehicle model block
조회 수: 32 (최근 30일)
이전 댓글 표시
Below is the error I am facing:
MATLAB System block 'Town4/Simulation 3D Scene Configuration/Simulation 3D Engine' error occurred when invoking 'resetImpl' method of 'Simulation3DEngine'. The error was thrown from ' 'D:\Programs\Matlab_R2022a\toolbox\shared\sim3d\sim3d\+sim3d\EngineInterface.p' at line 0 'D:\Programs\Matlab_R2022a\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0 'D:\Programs\Matlab_R2022a\toolbox\shared\sim3d\sim3d\+sim3d\Project.p' at line 0 'D:\Programs\Matlab_R2022a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DEngine.p' at line 0 'D:\Programs\Matlab_R2022a\toolbox\simulink\ui\studio\config\m\+SLStudio\StartPauseContinue.p' at line 0 'D:\Programs\Matlab_R2022a\toolbox\simulink\ui\studio\config\m\+SLStudio\ToolBars.p' at line 0'.
Caused by: Could not establish communication with 3D simulation engine. Restart the simulation. If problem persists, contact MathWorks.
Can you please assist, do you have any suggestions to the issue. I am using a company laptop so deleting the latest windows updates isn't possible. Thank you
댓글 수: 0
답변 (1개)
Chandrika
2024년 2월 5일
Hello Fadi,
Please make sure you are following the steps as mentioned here in the following documentation:
Besides, verify once that you are reparenting the blueprint as described in the "Reparent Actor Blueprint" section of "https://www.mathworks.com/help/driving/ug/customize-scenes-using-simulink-and-unreal-editor.html" document.
Further, once upon clicking on “Run” in the Simulink model, make sure you are starting the simulation by clicking on “Play” in the Unreal Editor. This is because the source of the scenes is the project opened in the Unreal Editor.
Also, when you click "Run" in Simulink, verify that the Diagnostic Viewer window in Simulink displays the following message:
"In the Simulation 3D Scene Configuration block, you set the scene source to 'Unreal Editor'. In Unreal Editor, select 'Play' to view the scene."
This message confirms that Simulink has instantiated vehicles and other objects in the Unreal Engine environment.
Hope this helps!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!