What problem does it solve?
Integrating legacy or custom C/C++ code into Simulink models requires correctly configuring C Function blocks, symbol scopes, data types, and custom code settings, which is error-prone when done manually. This Skill gives an AI agent the exact rules and API patterns to perform that configuration programmatically.
Core Features & Use Cases
- SymbolSpec Configuration: Add and configure input, output, persistent, constant, and parameter symbols with correct Simulink types derived from C/C++ signatures.
- C++ Class Integration: Declare C++ class instances as Persistent symbols with constructor arguments and call class methods directly in code sections.
- Custom Code Settings: Configure block-level or model-level headers, sources, libraries, and search paths with portable relative paths.
- Use Case: Wrap an existing C++ algorithm class in a Simulink test bench by adding a C Function block, declaring the class as a Persistent symbol, wiring inputs/outputs, and setting parameter values.
Quick Start
Integrate my C++ class from Adder.h into a Simulink model using a C Function block with one input, one output, and a constructor parameter.