Error Simulating Model When Enabling the 3D Engine with the Vehicle Dynamics Blockset in MATLAB R2018b
    11 views (last 30 days)
  
       Show older comments
    
    MathWorks Support Team
    
 on 15 Feb 2019
  
    
    
    
    
    Commented: Mike Sasena
    
 on 8 Mar 2023
            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?
Accepted Answer
  MathWorks Support Team
    
 on 15 Feb 2019
        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.
0 Comments
More Answers (1)
  Mike Sasena
    
 on 25 May 2022
        As noted in some of the answers above, this issue is related to a Windows update that changed a part of the .NET infrastructure that our interface to Unreal was relying on.  Subsequent updates to our product have fixed the interface, so updating MATLAB should fix this issue.  You can read more here. 
1 Comment
  Mike Sasena
    
 on 8 Mar 2023
				Hi 城 常.  It can be difficult to debug your specific situation via this public thread.  I'd recommend you reach out to our Tech Support team who can work directly with you to resolve the issue.
See Also
Categories
				Find more on Vehicle Scenarios in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
