-
Real-Time Workshop® Embedded Coder™ 5
1
-
How to Contact The MathWorks
2
-
Version 3.0 (Release 13)
3
-
Introduction to the Real-Time Workshop®
5
-
Designing Custom Storage Classes and Memory
8
-
Renaming and Replacing Data Types
11
-
Managing Placement of Data Definitions and
13
-
Specifying the Persistence Level for Signals and
14
-
Choosing and Configuring an Embedded
15
-
Custom File Processing (CFP) Template Structure
16
-
Generating Reports for Code Reviews and
17
-
Setting Hardware Implementation Parameters
18
-
Generating Code for AUTOSAR Software
19
-
Selecting an AUTOSAR Schema
20
-
Integrating External Code and Generated
21
-
Exporting Function-Call Subsystems That Depend on
22
-
Model Specific C Prototypes View
23
-
Setting Up Support for Code Reuse
26
-
Wind River Systems VxWorks Example Main
27
-
Checking Code Correctness
28
-
Simplifying Code Integration and Maximizing Code
30
-
Programming PIL Support for Third-Party Tools and
31
-
Introduction to the
33
-
Developing Models for Code
35
-
Setting Up Your Modeling
37
-
2 Setting Up Your Modeling Environment
38
-
3 Architecture Considerations
40
-
Generating Code Variants for Variant Models
41
-
Creating and Using Host-Based Shared Libraries
47
-
• “Using Discrete and Continuous Time” on page 4-2
55
-
4 Scheduling Considerations
56
-
Using Discrete and Continuous Time
57
-
Developing Model Patterns
61
-
Types, Operators, and Expressions
69
-
In this section...
85
-
Y.y1 = U.u1;
91
-
Modeling Pattern for Switch: Switch Case block
93
-
/* Inport: '/u3' incorporates:
95
-
for (s1_iter = 0; s1_iter < 10; s1_iter++) {
101
-
The Stateflow diagram is shown.
103
-
Modeling Pattern for While Loop: Stateflow Chart
111
-
flag = true;
115
-
/* ':1:3' */
117
-
7 To validate your changes, click Validate.
129
-
%% Create a c-mex file for S-function
131
-
Defining Data Representation
137
-
Using mpt Data Objects
139
-
6 Using mpt Data Objects
140
-
Parameter and Signal Property Values (Continued)
141
-
Creating and Using Custom
151
-
7 Creating and Using Custom Storage Classes
152
-
Introduction to Custom Storage Classes
153
-
Resources for Defining Custom Storage Classes
155
-
Simulink® Package Custom Storage Classes
157
-
Creating Packages that Support CSC Definitions
159
-
Applying CSCs to Parameters and Signals
187
-
Generating Code with Custom Storage Classes
209
-
Defining Advanced Custom Storage Class Types
213
-
GetSet Custom Storage Class for Data Store Memory
217
-
Custom Storage Class Implementation
221
-
Custom Storage Classes Prior to R2009a
223
-
Custom Storage Classes Prior to Release 14
225
-
Inserting Comments and
237
-
8 Inserting Comments and Pragmas in Generated Code
238
-
Introduction to Memory Sections
239
-
Requirements for Defining Memory Sections
241
-
Defining Memory Sections
243
-
Configuring Memory Sections
247
-
Applying Memory Sections
249
-
Examples of Generated Code with Memory Sections
257
-
Model-Level Data Structures
259
-
Memory Section Limitation
261
-
Optimizing Buses for Code
263
-
9 Optimizing Buses for Code Generation
264
-
Setting Bus Diagnostics
265
-
Optimizing Virtual and Nonvirtual Buses
267
-
Using Single-Rate and Multi-Rate Buses
269
-
Setting Bus Signal Initial Values
273
-
Buses and Atomic Subsystems
279
-
Renaming and Replacing
283
-
10 Renaming and Replacing Data Types
284
-
Code Generation with User-Defined Data Types
287
-
Managing Data Definitions
289
-
Overview of the Data Dictionary
291
-
Creating Simulink® and mpt Data Objects
293
-
Creating a Data Dictionary for a Model
307
-
Saving and Loading Data Objects
317
-
Applying Naming Rules to Identifiers Globally
319
-
Creating User Data Types
327
-
Registering mpt User Object Types
337
-
Customizing Data Object Wizard User Packages
349
-
Managing Placement of
355
-
Priority and Usage
357
-
Memory Section Settings
365
-
Data Placement Rules and Effects
377
-
Specifying the Persistence
387
-
Preparing Models for Code
393
-
Objectives to Model
395
-
Defining High-Level Code Generation Objectives
397
-
Creating Custom Objectives
405
-
Choosing and Configuring
413
-
Selecting a System Target File
417
-
Selecting a System Target File Programmatically
419
-
Specifying Code Appearance
421
-
16 Specifying Code Appearance and Documentation
422
-
Customizing Comments in Generated Code
423
-
Controlling Code Style
441
-
Ensuring Delimiter Is Specified for All #Includes
489
-
• “Introduction” on page 17-2
491
-
17 Defining Model Configuration Variations
492
-
Generating Code and Building
495
-
Generating Code Modules
497
-
18 Generating Code Modules
498
-
Real-Time Workshop Embedded Coder File Packaging
499
-
Generating Reports for Code
505
-
About HTML Code Generation Report Extensions
507
-
Generating an HTML Code Generation Report
509
-
Optimizing Generated Code
523
-
20 Optimizing Generated Code
524
-
Configuring Production Code Optimizations
525
-
Maximum stack size (bytes)
527
-
Tips for Optimizing the Generated Code
541
-
Developing Models and
551
-
What Are the Standards and Guidelines?
553
-
Generating Code for
561
-
22 Generating Code for AUTOSAR Software Components
562
-
Simulink® Modeling Patterns for AUTOSAR
563
-
Workflow for AUTOSAR
589
-
Importing an AUTOSAR Software Component
591
-
Using the Configure AUTOSAR Interface Dialog Box
593
-
Configuring Client-Server Communication
599
-
Configuring Multiple Runnables
615
-
Limitations and Tips
623
-
Demos and Further Reading
627
-
Integrating External Code and
629
-
About External Code
631
-
23 About External Code Integration Extensions
632
-
24 Generating S-Function Wrappers
634
-
About S-Function Wrapper Generation
635
-
Creating a SIL Block
637
-
• “Overview” on page 25-2
639
-
25 Exporting Function-Call Subsystems
640
-
Exported Subsystems Demo
641
-
Techniques for Exporting Function-Call Subsystems
645
-
Function-Call Subsystem Export Example
649
-
Function-Call Subsystems Export Limitations
653
-
Modular Function Code
655
-
Controlling Generation of
671
-
27 Controlling Generation of Function Prototypes
672
-
Configuring Model Function Prototypes
675
-
Model Function Prototypes Example
683
-
Verifying Generated Code for Customized Functions
693
-
Model Function Prototype Control Limitations
695
-
Overview of C++ Encapsulation
699
-
C++ Encapsulation Quick-Start Example
701
-
C++ Encapsulation Interface Control Limitations
723
-
Replacing Math Functions
725
-
Introduction to Target Function Libraries
727
-
Creating Function Replacement Tables
741
-
Registering Target Function Libraries
873
-
Setting Up Generated Code To
883
-
Configuring the Target
885
-
30 Configuring the Target Hardware Environment
886
-
Configuring Support for Time Values
887
-
Configuring Target Function Libraries
893
-
Interfacing With Hardware
895
-
Generating a Standalone Program
897
-
rt_OneStep and Scheduling Considerations
901
-
Model Entry Points
909
-
Static Main Program Module
911
-
Rate Grouping Compliance and Compatibility Issues
915
-
Wind River Systems
921
-
Verifying Generated Code
925
-
Tracing Generated Code to
927
-
33 Tracing Generated Code to Requirements
928
-
34 Verifying Generated Code
932
-
Traceability for Production Code Generation
933
-
Rapid Prototyping On a
953
-
35 Rapid Prototyping On a Target System
954
-
Goals of On-Target Rapid Prototyping
955
-
Source Code With
957
-
Verifying Code Using the SIL Simulation Mode
959
-
Choosing a SIL Approach
961
-
Running a Complete Model as a SIL Simulation
969
-
Running a Referenced Model as a SIL Simulation
971
-
SIL Code Interfaces
973
-
Configuring a SIL Simulation
975
-
Configuring Hardware Implementation Settings
987
-
Verifying a Component in
991
-
37 Verifying a Component in the Target Environment
992
-
Running Component Tests in the Target Environment
997
-
Verifying a Component
999
-
Object Code with
1007
-
About Processor-In-the-Loop Simulation
1009
-
Choosing a PIL Approach
1011
-
PIL Code Interfaces
1015
-
Configuring a PIL Simulation
1021
-
Creating a Connectivity Configuration for a Target
1025
-
SIL and PIL Simulation Support and Limitations
1031
-
Equivalence of Results
1053
-
Advanced Code Generation
1067
-
absolute time 30-3
1069
-
verifying in context of complete real-time
1070
-
elapsed time 30-3
1071
-
guidelines, complying with 21-5
1072
-
optimizing model designs for specific
1073
-
tracing generated code 29-144
1074