MATLAB: Can I create a Standalone executable for Hardware-in-the-loop (HIL) using Simulink Real-Time

I have previously used Simulink Coder to generate executables for various models using RSIM. However, in order to execute these executables on a machine, you must have MATLAB/Simulink installed (else the EXE will error). I am also aware that it is possible to have ‘standalone executables’ that do not need MATLAB/Simulink installed on the machine at runtime, such as those created by various fixed-step solvers like Host-Based Shared Library targets.
I was wondering what type of executable is produced by Simulink Real-Time? If Simulink Real-Time does not create a ‘standalone executable’, do you know of any other methods to obtain them for Hardware-in-the-loop type simulations?

Best Answer

Yes, you can definitely perform standalone operations with Simulink real time including HIL simulations.
You can more details about this workflow in our documentation below:
For more details about Standalone opearations by Simulink Real-Time please refer to the following link: