Using Pointer in Simulink function

Model explains how to use a pointer arguments in a C/C++ generated code from Simulink function
161 Downloads
Aktualisiert 20. Aug 2022

Lizenz anzeigen

Objective: To use pointer arguments in auto generated code from Simulink.
Following steps are implemented in the Simulink model
  1. Create a Simulink function with input and output arguments
  2. Right click the block and navigate to C/C++ code --> C/C++ Function Interface
  3. Configure C/C++ Return Argument to Void, this modifies all the output arguments defined in simulink function to pointer

Zitieren als

Muthukumar Ganesan (2025). Using Pointer in Simulink function (https://de.mathworks.com/matlabcentral/fileexchange/116510-using-pointer-in-simulink-function), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Tags Tags hinzufügen

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0