Einheiten in Simulink
Simulink ermöglicht es Ihnen, physikalische Einheiten als Attribute für Signale an den Grenzen von Modellkomponenten anzugeben. Indem Sie Signaleinheiten angeben, kontrollieren und visualisieren, können Sie die Konsistenz von Berechnungen in den verschiedenen Komponenten Ihres Modells sicherstellen. Diese zusätzliche Konsistenzprüfung kann zum Beispiel nützlich sein, wenn Sie viele separat entwickelte Komponenten in ein großes Gesamtsystemmodell integrieren. Für die ersten Schritte mit Einheiten, siehe Unit Specification in Simulink Models.
Blöcke
Inport | Create input port for subsystem or external input |
Outport | Create output port for subsystem or external output |
Signal Specification | Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal |
Unit System Configuration | Restrict units to specified allowed unit systems |
Unit Conversion | Convert units |
Funktionen
createCustomDBFromExcel | Create custom units database file from Microsoft Excel spreadsheet (Seit R2020a) |
rehashUnitDBs | Refresh unit database files on MATLAB path (Seit R2020a) |
showunitslist | Show built-in units, physical quantities, and unit systems supported by Simulink |
Themen
- Unit Specification in Simulink Models
Specify physical units as attributes on signals at the boundaries of model components.
- Displaying Units
Dynamically update port and signal labels to show any changes made to units.
- Update an Existing Model to Use Units
Use a fuel control system example to learn how to update an existing model to use units.
- Unit Consistency Checking and Propagation
Check unit consistency between components.
- Converting Units
Configure Simulink to convert units between ports when discrepancies that have known mathematical relationships are detected.
- Working with Custom Unit Databases
Create and load custom unit databases from Excel® spreadsheets.
Fehlersuche
Use Model Advisor checks to troubleshoot common issues with unit settings.