Ausgabe der Codegenerierung
Um Code zur Ausführung auf einer bestimmten Zielplattform zu generieren, konfigurieren Sie die Codegenerierungs-Ausgabe für Ihr Modell. Berücksichtigen Sie bei Ihrer Codekonfiguration die folgenden Zielplattformen:
Den MATLAB®-Entwicklungscomputer, auf dem die MathWorks® Software während der Anwendungsentwicklung ausgeführt wird.
Die Testhardware, auf der der Code während des Rapid Prototyping getestet wird.
Die Produktionshardware, auf der Sie den generierten Code bereitstellen.
Die Ausgabe der Codegenerierung wird von der von Ihnen für das Modell festgelegten System-Zieldatei und Sprache sowie dem von Ihnen festgelegten Bereitstellungstyp geregelt. Diese Einstellungen bestimmen, welche Codegenerierungsoptionen im Dialogfeld „Konfigurationsparameter“ und im Code Mappings-Editor verfügbar sind. Verwenden Sie diese Optionen, um den generierten Code zur Ausführung auf Ihrer Zielhardware zu konfigurieren.
Apps
| Embedded Coder | Generate readable, compact, and fast C and C++ code for embedded processors used in mass production |
Funktionen
switchTarget | Select target for model configuration set |
Themen
- Compare System Target File Support Across Products
Evaluate system target file support by product, code style, and generated code features.
- Configure a System Target File
Select and configure a solver and a system target file.
- Configure STF-Related Code Generation Parameters
Configure model parameters that relate to GRT, ERT, or ERT-based system target files for code generation.
- Select Code Generation Output for Target Platform Deployment
Select output type the code generator uses to produce code for the loaded model.
- Configure C Code Deployment Types for Model Hierarchy
Generate different code interfaces for models throughout a model hierarchy.
- Configure Run-Time Environment Options
Set model simulation and code generation options for development and deployment run-time environments: MATLAB development computer, production hardware, and test hardware.
- Select C or C++ Programming Language
Choose C or C++ as the programming language for code generation.
- Configure Language Standard for Target System
Configure standard library extensions that the code generator uses for math operations.
- Replace Code Generated from Simulink Models
This example shows how to replace generated code by using a code replacement library.