Send a single Integer data from Simulink to UnrealEngine
4 views (last 30 days)
Dinesh on 4 May 2023
In your case, the easiest method is to use a MATLAB Function block and a shared memory (file). You can create a MATLAB Function block in Simulink that writes integer data to a shared file. In Unreal Engine, you can create a custom C++ or Blueprint node to read the integer data from the shared file. Now that data can be used to visualize Simulink model result in Unreal Engine.
There are other inbuilt ways in Simulink that can help you with communicating between Simulink and Unreal Engine with some additional installation. It includes installing the Vehicle Dynamics Blockset Interface for Unreal Engine 4 Projects support package.
The following link will guide you to getting started with communication to the Unreal Engine.
If your use case includes working with the Vehicle Dynamics Blockset extensively, then the following guide will help you get started.