Requirements for Using Alternative Platforms
Simulink® Real-Time™ creates standalone, real-time applications for performing hardware-in-the-loop (HIL) simulation on dedicated hardware. Creating and executing a standalone, real-time application using an alternative platform requires specific hardware and software.
The minimum hardware requirements for HIL simulation with a custom application are:
Development computer with a network, serial, or USB interface for communicating with the real-time processor
A real-time capable target CPU or computer that supports 64-bit precision floating-point arithmetic and 32-bit integer size
I/O board supported by the real-time target machine
Controller preconfigured with code from your controller model
Peripheral for transferring code to the real-time target machine
Wiring harness to connect the real-time target machine to the controller
Your real-time target machine may also require a real-time operating system (RTOS).
The minimum software requirements for HIL simulation with a custom application are:
Embedded Coder® and the Embedded Coder Software Requirements.
Simulink Coder™ and the Simulink Coder Software Requirements.
Template example main function that you can manually or automatically combine with generated code. For information, see Incorporate Generated Code Using an Example Main Function (MATLAB Coder).
I/O driver. Options are:
C code I/O drivers for the code generation build
Precompiled static or dynamic library with the necessary documentation
Cross compiler that supports 64-bit precision floating-point arithmetic and 32-bit integer size.
For details on supported compiler versions, see Supported and Compatible Compilers.
By default, Simulink Coder uses ISO®/IEC 9899:1990 (C89/C90 [ANSI]) library to produce C code. Not all compilers support this library. To learn how to enable the code generator to use a different math extensions library in a model, see Configure Standard Math Library for Target System (Simulink Coder).