Simulink Coder
6Pages

{{requestButtons}}

Catalog excerpts

Simulink Coder - 1

Simulink Coder Generate C and C++ code from Simulink and Stateflow models Simulink Coder™ (formerly Real-Time Workshop ) generates and executes C and C++ code from Simulink diagrams, Stateflow® charts, and MATLAB® functions. The generated source code can be used for real-time and nonreal-time applications, including simulation acceleration, rapid prototyping, and hardware-in-the-loop testing. You can tune and monitor the generated code using Simulink or run and interact with the code outside MATLAB ■ ANSI/ISO C and C++ code and executables for discrete, continuous, or hybrid Simulink and Stateflow ■ Incremental code generation for large models ■ Integer, floating-point, and fixed-point data type support ■ Code generation for single-rate, multirate, and asynchronous models ■ Single-task, multitask, and multicore code execution with or without an RTOS ■ External mode simulation for parameter tuning and signal monitoring File Edit View Simulation Format Tools Help pdotiqdot; rdor^ Selecting and Working with Targets The Simulink Model Explorer provides a single user interface in Simulink to configure all code generation settings. From the Model Explorer you can: Accelerating the pace of engineering and science

Open the catalog to page 1
Simulink Coder - 2

■ Select a code generation target ■ Configure the target for code generation ■ Generate code for models or subsystems The Code Generation Advisor checks your model and code generation settings, and then offers advice on how to improve your configuration based on your needs. Once you have identified the optimal settings for your project, you can save them as a configuration set to reuse with other models. File Edit View Display Diagram Simulation Analysis Code Tools Help & Radv AHmtter Patiwns Demands Airdata SysiEmop Guidance System Large aircraft system modeled using Simulink. Simulink...

Open the catalog to page 2
Simulink Coder - 3

You can extend these targets to create customized run-time interfaces and device driver files, which enables you to target your specific environment and access Simulink Coder execution and debug capabilities in it. Compiling and Executing Generated Code Simulink Coder offers built-in support for compilation and execution of generated code with popular desktop environments, including: ■ Microsoft® Visual C++® IDE ■ Linux® operating system ■ Windows® operating system You can generate and deploy optimized C and C++ code in real-time embedded systems using Embedded Coder. Defining and...

Open the catalog to page 3
Simulink Coder - 4

Generating Code Simulink Coder offers comprehensive code generation support for Simulink and Stateflow features and components, including: ■ Model blocks for generating code incrementally ■ Atomic subsystems and atomic subcharts for reusing code via reentrant C functions ■ Bus objects and arrays of buses for generating structures in your code ■ S-functions for simulating and interfacing with legacy code ■ MATLAB function blocks in Simulink and MATLAB functions in Stateflow for generating code from models with MATLAB components Simulink Coder also supports the Simulink product family,...

Open the catalog to page 4
Simulink Coder - 5

Executing Code in a Real-Time Environment Simulink Coder provides a complete framework for executing the generated code in real time and incorporating it into your execution environment. It generates single-rate or multirate code based on the periodic sample times you specify in the model. Execution Modes Code can be deployed with or without an RTOS, and in single-tasking, multitasking, or asynchronous mode. Single-Tasking Mode In single-tasking mode, a simple scheduler invokes the generated code in a single thread of execution, preventing preemption between rates. Multitasking Mode In...

Open the catalog to page 5
Simulink Coder - 6

Tuning Parameters and Logging Data Simulink Coder helps you optimize your algorithm’s performance and improve code execution behavior by enabling you to interact with and analyze the generated executable. Simulink Coder lets you monitor and tune block signals and parameters using the following data interfaces: Target-based C API — Enables user-written code to access block outputs and parameters outside MATLAB and Simulink Host-based ASAP2 data exchange file — Lets you use the ASAP2 standard data description for data measurement, calibration, and diagnostic systems outside MATLAB and...

Open the catalog to page 6

All The MathWorks catalogs and technical brochures

  1. Stateflow

    8 Pages

  2. SimEvents

    7 Pages

  3. SimDriveline

    7 Pages

  4. SimRF

    6 Pages

  5. MATLAB Coder

    5 Pages

  6. OPC Toolbox

    5 Pages

  7. SimBiology

    6 Pages

  8. xPC Target

    5 Pages

  9. SimMechanics

    7 Pages

  10. Simscape

    7 Pages

  11. Simulink

    6 Pages

  12. MATLAB®

    6 Pages

Archived catalogs

  1. Graphics

    667 Pages

  2. Data Analysis

    220 Pages

  3. Mathematics

    316 Pages