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?

 Accepted Answer

Yes, you can definitely perform standalone operations with Simulink Real-Time, including HIL simulations.
For more details about this workflow, you can access the documentation specific to MATLAB R2020a by executing the following command in the MATLAB command window:
>> web(fullfile(docroot, 'xpc/standalone-operation.html'))
To explore more about Standalone operations using Simulink Real-Time, please execute the following command in the MATLAB R2020a command window to view the relevant documentation:
>> web(fullfile(docroot, 'xpc/gs/standalone-mode-embedded-option.html'))
For information related to the current release, please visit the following link:

More Answers (0)

Categories

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!