MATLAB Answers

Error Simulating Model When Enabling the 3D Engine with the Vehicle Dynamics Blockset in MATLAB R2018b

조회 수: 57(최근 30일)
Using the shipped 'vdynblksDblLaneChangeStart' demo with the '3D Engine' visualization turned on, the model errors with the following message upon simulation:
MATLAB System block 'DLCReferenceApplication/Visualization/3D Engine/3D Engine/Simulation 3D Engine 1/Simulation 3D Engine' error occurred when invoking 'setupImpl' method of 'Simulation3DEngine'. The error was thrown from:
'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3d\sim3d\+sim3d\Project.p' at line 0
'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3dblks\sim3dblks\Simulation3DEngine.p' at line 0'.
Caused by:
Invalid default value for property 'engine' in class 'sim3d.Engine':
3D simulation engine interface setup error (1). Please check the toolbox preferences and ini-file.
Is there a way to fix this?

채택된 답변

MathWorks Support Team
This issue is potentially caused by spaces in the Windows "%temp%" directory path. Once your Windows "%temp%" directory path does not have a space, the simulation should be able to execute without error. Spaces in the Windows "%temp%" directory may be caused by spaces in the Windows username.

  댓글 수: 1

Saurabh Muley
Saurabh Muley 23 Sep 2019
Hello,
I am facing a similar issue. I checked and my %temp% folder directory path does not have any spaces. How should i go about fixing the issue?
I read the answers below about uninstalling the latest windows updates, but i am unable to do that since i work in a corporate environment.
Any help is appreciated.
Thanks,
Saurabh

로그인 to comment.

추가 답변(3개)

stimo
stimo 21 Aug 2019
편집: stimo 21 Aug 2019
JFYI, we had suddenly been facing this same error on multiple systems, with a model that was working fine before. After many attempts of reinstalling Unreal, Matlab and several toolboxes (which did not help), we found out that the model and visualization were still working on a computer that did not have the latest Windows updates installed. After uninstalling some of the more recent updates (state August 20. 2019) from the other system, the error disappeared. Unfortunately we can't identify the responsible update exactly.
Hope this information helps anyone else.
Cheers

  댓글 수: 1

Ziping Liu
Ziping Liu 18 Nov 2019
Thank you very much for the answer! I had this error for several month and deleting recent Windows updates works.

로그인 to comment.


Tim Ellershaw
Tim Ellershaw 28 Mar 2019
Hi,
I'm getting the same error when trying to run any of the Unreal Engine examples. I'm following the instructions in AVE_README.pdf
I've tried changing the %temp% environment variable ( to C:\Temp ) but this made no difference.
Do you have any other suggestions ?
Thanks.

  댓글 수: 0

로그인 to comment.


DDIC
DDIC 1 Apr 2020 5:55
Caused by:
  • 类 'sim3d.Engine' 中的属性 'engine' 的默认值无效: 没有为类 'System.Diagnostics.Process' 找到具有匹配签名的方法 'Start'。
Translation For The Last Line:
Invalid default value for property 'engine' in class 'sim3d.Engine': Function Named 'Start' With Matched Signature In Class 'System.Diagnostics.Process' Not Found.
1, No Space In %TMP% / %TEMP%, 2, UnInstalled All The Updates Of Windows That I can UnInstall.
What Shall I Do?
Thank You!

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by