Integrieren von Python-Code in Simulink
Simulink ermöglicht Ihnen die Implementierung von Algorithmen, die mithilfe von Python-Code entwickelt wurden. Sie können Python-Module mithilfe des MATLAB Function-Blocks, des MATLAB System-Blocks oder des Python-Importers in Simulink implementieren. Zur Implementierung einfacher Algorithmen verwenden Sie den MATLAB Function-Block. Für Algorithmen, die eine Verarbeitung von Zustandsdynamik, Streaming-Daten und zusätzliche Blockanpassungen erfordern, verwenden Sie den MATLAB System-Block. Mit dem Python Importer können Sie Python-Module in Simulink importieren, indem Sie benutzerdefinierte Blöcke für bestimmte Funktionen erzeugen.
Weitere Informationen zur Verwendung von Python in MATLAB® finden Sie unter Aufrufen von Python aus MATLAB heraus.
Themen
- Overview of Integrating Python Code with Simulink
Integrate Python code with Simulink Using MATLAB Function block or MATLAB System block.
- Import Python Code to Simulink Using Python Importer Wizard
Use the Python Importer to Import Python Modules and Packages to Simulink.