Integrazione di codice esterno
Integrare funzioni di MATLAB, modelli di Simulink e funzioni C per consentire la comunicazione tra Stateflow e il codice esterno
Riutilizzare gli algoritmi esistenti e i linguaggi di programmazione esterni nel grafico. Chiamare funzioni di MATLAB, C o C++ direttamente dagli stati e dalle transizioni. Generare codice dal grafico per l'implementazione su sistemi embedded e applicazioni esterne.
Argomenti
- Integrate MATLAB Functions in Stateflow Charts
Define the logical behavior of a MATLAB® function.
- Use Custom C or C++ Code in Stateflow Charts
Integrate preexisting custom code into Simulink® models.
- Call Extrinsic MATLAB Functions in Stateflow Charts
Access MATLAB functions that are not supported for code generation.
- Call C Library Functions
Access C functions in state and transition labels.
- Control Function-Call Subsystems
Bind a function-call output event to the activity of a state.
- Synchronize Model Components by Using Events
Use events to communicate with Simulink and MATLAB.