Run-Time Software Modeling
Run-Time Software Modeling, at a basic level, is taking Simulink® components and modeling, simulating, and targeting them for embedded software frameworks (e.g. AUTOSAR, ARINC, or your custom domain-specific framework). Simulink provides a range of modeling abstractions that help enhance your algorithm model to be suitable for mapping to scheduling, communication, memory, and diagnostic services that are provided by such frameworks. For instance, you can use:
- Specific modeling styles to partition your design for run-time scheduling
- Buses to capture software interfaces
- Simulink Functions to map to diagnostic and memory services
- Schedule Editor and Stateflow® to create simple test harnesses and to simulate the composition
- Messages to tie into communication middleware
- IRT subsystems combined with state charts (from Stateflow) to define complex power-cycle and mode-transition logic
In addition, using model reference, variant, and data management capabilities, you can build your components for maximal reuse within an application and even across multiple software frameworks. Complemented by the Simulink platform for simulating large compositions and the capabilities of Embedded Coder® for producing custom code for your software frameworks, you will have a full range of capabilities to specify, elaborate, test, and validate your software components. Explore the Related Features videos to learn more about the capabilities Simulink provides.
How to Model Run-Time Software with Simulink Run-Time Software Modeling helps you implement large-scale run-time systems by defining the components in a composition, simulating and testing them, generating code, and integrating the code into a larger system.
How to Partition and Schedule with Export Functions in Simulink Partition and schedule models with the Export Function modeling style to integrate functions into your software environment easily and have a clear mapping from model to code.
How to Combine Modeling Styles with Schedulable Components in Simulink Rate-based subsystems can be partitioned and scheduled as well, allowing you to combine modeling styles with schedulable components.
How to Model Software Services with Simulink Functions Use Simulink Functions to model software services. A Function Caller block can model and generate code for the client’s call to services, especially I/O services, and a Simulink Function block provides those services.
How to Use Schedule Editor Explicitly schedule the execution of your model components, including Export Functions and rate-based models, with Schedule Editor for both simulation and code generation, where every specified partition has an entry point in the generated code.
What Are Messages in Simulink? Use messages to model and generate C++ code for software compositions with message-based communication.