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:
CPU.
I/O board. For information on supported I/O boards, see Supported Hardware: Hardware Drivers.
Protocol interface
Controller, preconfigured with code from your controller model
Connection cable for linking the development computer to the real-time target machine.
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.
Note
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).
Simulink Real-Time Explorer (Simulink Real-Time)