Communciation between Simulink and Unreal for custom projects does not work

1 view (last 30 days)
Hello,
I've been trying to get this tutorial to run for a while now, but I always get the following error message:
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • For 'Output Port 1' of 'untitled/Simulation 3D Message Get/Simulation 3D Message Get', the 'stepImpl' method of the System object 'Simulation3dGet' returned a value that has data type 'double', which does not match the data type 'single' returned by the 'getOutputDataTypeImpl' method. Either change the data type of the value returned by 'stepImpl', or change the data type returned by 'getOutputDataTypeImpl'.
I have already tested various approved combinations of MATLAB release and Unreal version using different computers that meet the mimimal hardware requirements, unfortunately without success.
The example models with Unreal (e.g. Scene Interrogation with Camera and Ray Tracing Reference Application) work without problems and there is also a communication between Simulink and the Unreal Editor possible, as soon as it comes to an own project I get the above mentioned error message.
I followed the tutorial carefully and chose every setting/name exactly as described. Has anyone had the same problem and found a solution or any idea why I keep getting the error?
Thank you very much,
Best regards!

Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!