To create a real-time application, start with a Simulink® model, which can contain any block for which Simulink Coder™ can generate C code, including:
Simulink and Simulink Real-Time™ blocks
Blocks from products such as Stateflow®, Simscape™, and related system toolboxes
User code or third-party code in the form of C code S-function blocks
FPGA subsystems, programmed by using HDL Coder™ HDL Workflow Advisor.