|
Course Highlights
This hands-on, three-day course focuses on developing models in the Simulink® environment to deploy on embedded systems. The course is designed for Simulink users who intend to generate, validate, and deploy embedded code using Embedded Coder™.
Topics include:
- Generated code structure and execution
- Code generation options and optimizations
- Integrating generated code with external code
- Generating code for multirate systems
- Customizing generated code
- Customizing data
- Deploying code
Course Objectives
The aim of this course is to show the capabilities of Real-Time Workshop Embedded Coder for development of production code that is optimized for speed, memory usage, and simplicity.
.
Course Benefits
Upon the completion of the course, the participants will be able to generate code for a particular development board, and deploy the code on target hardware with cross-development system.
Course Outline
Day 1
Generating Embedded Code
Objective: Configure Simulink models for embedded code generation and effectively interpret the generation code.
- System Specification
- Data Structures in Generating code
- Generating ERT code
- Real-Time workshop software build in process
- Code Modules
Intergrating Generated Code with External Code
Objective: Modify models and files to run generated code and external code.
- Overview of Model entry points
- Configuring Data exchange with external code
- Using an execution harness
- Generating code for multirate system
- Including custom routines
Optimizing Generated Code
Objective: Identify the requirements of the application at hand and configure optimization setting to satisfy these requirements.
- Optimization considerations
- Removing unnecessary code
- Code Generation objective
- Removing unnecessary data support
- Optimizing Data storage
- Configure wizards
Day 2
Data Characteristics in Simulink
Objective: Control the data types and storage class of data in Simulink
- Data Characteristics
- Data Type classification
- Simulink Data type configuration
- Simulink Storage classes
- Setting signal storage classes
- Setting parameter storage classes
Impact of storage classes on symbols
Customizing Data Characteristics Using Data Objects
Objective: Control data types and design custom storage using data objects
- Simulink data objects overview
- Controlling data types with Data object
- Creating reconfiguration data types
- Effect of storage classes on symbols
- Custom storage classes
- Using predefined custom storage classes
- Designing custom storages classes
- Controlling Data types names
- Controlling variables names
Customizing Generated Code Architecture
Objective: Control the architecture of the generated code according to application requirements
- Simulink model architecture
- Controlling Simulink code partitioning
- Generating reusable code
- Data placement options
- Priority of data placement controls
Day 3
Advance Customization Techniques
Objective: Use code generation templates to control the generated files
- Review of code generation process
- Overview of code generation templates
- Defining code generation templates
- Using code generation templates
Deploying Generated Code
Objective: Collect necessary data and identify the necessary steps for custom target development
- Motivation for custom target
- Custom target development process
- Target directory structure
- The system target file
- Configuring the PRT custom target
- Template make files
- Intervening in the build process
- Setting up configuration pararmeters.
Introduction to Developing Device Drivers
Objective: Identify the necessary components templates and steps for developing device drivers.
- Overview of device drivers
- Using the legacy code tool
- Customizing device drivers components
- Creating Device driver library
Embedded System Development
Objective: Build and run code STR9-comStick USB start kit hardware using a custom embedded target in Real-time workshop Embedded Coder.
- Model based Design for embedded systems development
- System specification
- Algorithm Simulation
- Software-in-the-Loop(SIL)
- Code generation
Improving Code Efficiency and Compliance
Objective: Inspect the efficiency of generated code and verify compliance with standards and guidelines.
- The Model adviser
- Hardware Implementation parameters
- Compliance with standards and guidelines
|