Skills

Simulink Configure Code Interfaces

Use the skill to control and verify the code interface configuration of your model, ...

Install

npx skills add matlab/simulink-agentic-toolkit --skill simulink-configure-code-interfaces -g -a claude-code -y
Category
Engineering
Updated
6d ago
License
See repository
Context cost
Mediumabout 2,210 tokens
Runs scripts
No, instructions only

What it does

Use the skill to control and verify the code interface configuration of your model, how Simulink® model elements are represented in the generated C or C++ code. This includes, (1) specifying names, types (storage classes), and placement of variables that represent model elements (for example, making a model parameter tunable as a global extern variable); (2) specifying names, types, and placement of functions that represent model algorithms; (3) selecting the deployment type (Component, Subcomponent, or Automatic); (4) selecting the interface configuration type (data or service interface); (5) linking a shared Embedded Coder dictionary to a model; (6) creating Embedded Coder dictionary entries and setting their properties; (7) for service interface configuration, specifying service interface definitions, including sender, receiver, client, and server services. Items 1 and 2 can be set per element or as a category-wide default. Item 1 applies to GRT and ERT models; the rest to ERT models only.

Configuring Code Interfaces

Configure how model elements map to generated code, storage classes for elements in models configured with data interface configuration, and service interfaces for elements in models configured with service interface configuration.

Prerequisite: For full functionality of the skill (such as function mapping, specifying the deployment type, and using service interface configuration), the model needs to be configured with the ERT system target file (SystemTargetFile = "ert.tlc", or an ERT-based derivative such as ert_shrlib.tlc or a vendor ERT target). When the model is configured with the GRT system target file (SystemTargetFile = "grt.tlc"), only basic configuration operations such as specifying the storage class of model elements are supported. To configure the model with the ERT system target file, use the neighboring skill simulink-configure-model-for-code-generation.

Requires:

  • For models configured with the GRT system target file, a Simulink® Coder license is required.
  • For models configured with the ERT system target file, an Embedded Coder® license is required.

When to Use

Read the whole SKILL.md on GitHub

More in Engineering