Code generation for hardware-in-the-loop (HIL) simulation with Simulink® Real-Time™ requires specific hardware and software.
The minimum hardware requirements for HIL simulation with Simulink Real-Time are:
Development computer with a network or serial interface. For information on development computer specifications, see Development Computer Requirements (Simulink Real-Time).
Real-time target computer system, containing this hardware:
I/O board. For information on supported I/O boards, see Supported Hardware: Hardware Drivers.
Controller, preconfigured with code from your controller model
Peripherals that provide a way to:
Boot the real-time target computer
Transfer the Simulink Real-Time operating system and executable code to the real-time target computer
Wiring harness to connect the real-time target computer to the controller.
For information on the minimum software requirements for HIL simulation with Simulink
Real-Time, see Simulink
Real-Time Software Requirements. The Simulink
Real-Time requirements include a C compiler. For information, see
Simulink Real-Time C Compiler Requirements and
Command-Line C Compiler Configuration (Simulink Real-Time).
If you want more configuration options for code optimization, use Embedded Coder® to generate code for your real-time computer. For information, see Embedded Coder Product Description (Embedded Coder).