主要内容

Software Component Designer

R2026b

Design, simulate, and deploy software components for service-oriented architecture (SOA) applications

Since R2026b

Description

The Software Component Designer app provides tools to configure a model as a software component model, define data and service interfaces on ports, and specify communication and execution behavior using quality of service (QoS) properties.

Note

This app requires the Software Component Designer for Simulink® support package.

When you design software for service-oriented architecture applications, define how components communicate and execute at run time independently of the algorithms they implement. The Software Component Designer app lets you capture these design decisions early, so that the app preserves communication and execution behavior from simulation through code generation and deployment.

Use the app to:

  • Define data and service interfaces on component ports to establish clear contracts between components

  • Specify QoS properties, such as Queued or LatestValue receiver services and periodic or data-triggered execution, to define communication and execution behavior

  • Integrate components into software architecture models and simulate them with a mock run-time environment (RTE) to verify system-level behavior before deployment

  • Integrate components into architecture test harnesses to test software components and compositions with QoS properties

If you have the Embedded Coder® Support Package for Service-Oriented Applications on Linux®, you can also generate component code, build deployable applications, and deploy them to Linux platforms.

Software Component Designer app

Open the Software Component Designer App

  • Simulink Toolstrip: On the Apps tab, under Code Generation, click Software Component Designer Software Component Designer application icon.

  • System Composer™ Toolstrip: On the Apps tab, under Code Generation, click Software Component Designer.

Parameters

expand all

The Software Component Designer app toolstrip provides different options depending on whether you open the app from a software component model in Simulink or a software architecture model in System Composer.

Design

Open the Interface Editor (System Composer) to define data and service interfaces on component ports. To share interfaces across models, save them in data dictionaries (.sldd).

Open the Type Editor from the Interface Editor (System Composer) list to define bus objects and other data types used by interfaces.

Available from software component models only.

Open the Property Inspector panel to view and edit communication, execution, and deployment properties of port elements. Select a port or element on the canvas to display its properties. The Property Inspector is pinned but minimized by default when you open the app.

Check whether the QoS properties of connected port elements are compatible.

Available from software architecture models only.

Remove the software component configuration, including all communication and execution properties defined on port elements. A confirmation dialog box appears before the app removes the configuration.

Component Test Harness

Note

Available from software component models only.

Create an architecture test harness to validate communication and execution behavior of the software component with mock components.

When multiple test harnesses exist, Run with Test Harness uses the default harness.

Opens the test harness selected in Default Test Harness for editing in a new canvas.

Simulate the component using the selected test harness to validate run-time communication and execution behavior.

Simulate

Note

Available from software architecture models only.

Positive scalar value in seconds. The simulation runs from time 0 to the specified stop time.

Select the simulation mode. For software-in-the-loop (SIL) or processor-in-the-loop (PIL) simulation, use the SIL/PIL Manager on the Apps tab.

To speed up iterative workflows, keep the model compiled between simulations.

Simulate the software architecture model with a mock run-time environment (RTE) to validate communication and execution behavior configured by QoS properties. Keyboard shortcut: Ctrl+T.

Stop the current simulation. Keyboard shortcut: Ctrl+Shift+T.

Generate Code

Select the middleware protocol for deployment.

Available from software architecture models only.

Open the C/C++ Code Advisor to check the model for code generation readiness. To run checks during editing, select Edit-Time Checks from the list.

Available from software component models only.

Open configuration settings for code generation or hardware implementation.

Available from software component models only.

Open the service mappings view to see how service interfaces map to generated code.

Available from software component models only.

Generate C/C++ code from the model without executing the makefile. To generate code and build the model, select Build from the list.

Results

Open the Simulation Data Inspector to view logged signals from the simulation.

Available from software architecture models only.

Open the generated code for the model in the code viewer.

The report includes generated file lists, traceability information, and code metrics. Available after code generation completes.

Remove code traceability highlighting from the model.

Available from software component models only.

Share

Create a protected version of the model to share intellectual property without exposing the implementation.

Generate an ASAP2 description file and a Calibration Data Format (cdfx) file for the model.

Package generated code and associated artifacts into a zip file for distribution.

Tips

Version History

Introduced in R2026b

See Also

Tools