View documentation for other releases
Learn more about Simulink Code Inspector
• Getting Started
• User's Guide
• Model Compatibility Checking
About Model Compatibility Checking
Check Model Compatibility Using the Graphical User Interface
Check Model Compatibility Using the Command-Line Interface
• Correct or Work Around Incompatibilities
• Code Inspection
About Code Inspection
Inspect Code Using the Graphical User Interface
Inspect Code Using the Command-Line Interface
• Code Inspection Reports
• Traceability Matrices
• DO-178B Objectives Compliance
Model-Based Design Workflow in DO-178B
Applicable DO-178B Objectives
• Reference
• Model Configuration Constraints
About Model Configuration Constraints
• Simulink Configuration Parameter Constraints
Solver
Data Import/Export
Optimization
Optimization: Signals and Parameters
Diagnostics: Data Validity
Diagnostics: Connectivity
Diagnostics: Model Referencing
Hardware Implementation
Model Referencing
Code Generation: General
Code Generation: Comments
Code Generation: Symbols
Code Generation: Custom Code
Code Generation: Interface
Code Generation: SIL and PIL Verification
Code Generation: Code Style
Code Generation: Data Type Replacement
Code Generation: Not in GUI
Other Modelwide Attribute Constraints
• Block Constraints
About Block Constraints
• Block Constraints - Alphabetical List
All Blocks
Abs
Bus Assignment
Bus Creator
Bus Selector
Constant
Data Store Memory
Data Store Read
Data Store Write
Data Type Conversion
Data Type Duplicate
Demux
DocBlock
Enable Port
From
Gain
Goto
Ground
Inport
Logical Operator
1-D Lookup Table, 2-D Lookup Table, n-D Lookup Table (1 or 2-D)
Math Function
MinMax
Model
Model Info
Multiport Switch
Mux
Outport
Product
Relational Operator
Rounding Function
Saturation
Selector
S-Function
Signal Conversion
Subsystem, Atomic Subsystem, Enabled Subsystem
Sum, Add, Subtract
Switch
Terminator
Trigonometric Function
Unit Delay
• Supported Blocks - By Category
Commonly Used Blocks
Discontinuity Blocks
Discrete Blocks
Logic and Bit Operation Blocks
Lookup Tables
Math Operation Blocks
Model-Wide Utilities
Port & Subsystem Blocks
Signal Attribute Blocks
Signal Routing Blocks
Sink Blocks
Source Blocks
User-Defined Functions
• Model Advisor Checks
• Simulink Code Inspector Checks
Simulink Code Inspector Checks Overview
Check code generation settings
Check data import/export settings
Check diagnostic settings
Check hardware implementation settings
Check model reference settings
Check optimization settings
Check solver settings
Check for unconnected objects in the model
Check system target file setting
Check function specification setting
Check model arguments
Check conditional input branch execution setting
Check for unsupported blocks
Check for tunable workspace variables
Check for sample times in the model
Check for usage of global data stores
Check for Signal Conversion blocks automatically inserted on signals entering block input ports
Check for usage of fixed-point instrumentation
Check for root Outport blocks being conditionally assigned
Check usage of Sources blocks
Check usage of Signal Routing blocks
Check usage of Math Operations blocks
Check usage of Signal Attributes blocks
Check usage of Logical and Bit Operations blocks
Check usage of Lookup Tables blocks
Check usage of User-Defined Function blocks
Check usage of Ports and Subsystems blocks
Check usage of Discontinuities blocks
Check usage of Sinks blocks
Check usage of Discrete blocks
Check usage of root Outport blocks
Check usage of buses
• Simulink Code Inspector Dialog Box Parameters
• Simulink Code Inspector Dialog Box
Simulink Code Inspector Dialog Box Overview
This is the top of the model hierarchy
Inspect all referenced models
Omit model from code inspection if it fails compatibility check
Generate code before code inspection
Code placement
Code folder
Report folder
• Functions
• Release Notes
Symbols A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
By Category
Alphabetical List