Signale
Signale übertragen Daten zwischen zwei Blöcken in einer Simulation Bei den Daten kann es sich um die berechnete Ausgabe eines Blocks oder einfach um eine Nachricht handeln. Der Wert von Signalen wird für jeden Punkt der Simulationszeit berechnet. Sie können die Signaldaten und -eigenschaften während und nach der Simulation anzeigen, die Echtzeitwerte in einem Blockdiagramm sehen oder die Werte als Variablen im Workspace protokollieren. Sie können die Signale außerdem in eine Datei oder in einen Workspace exportieren, um sie genauer zu analysieren.
Sie können das mathematische Verhalten eines Modells steuern, indem Sie Signaleigenschaften wie den numerischen Datentyp, den Anfangswert und den Wertebereich festlegen. Weitere Informationen finden Sie unter Signal Basics.
Blöcke
Funktionen
Objekte
sltrace.Graph | Signal path traced using sltrace function (Seit R2021b) |
Tools
Signaleigenschaften | View and edit signal properties |
Instrumenteigenschaften | View and edit logging and visualization properties for logged signal |
Property Inspector | Edit parameters and properties for any Simulink model element |
Model Data Editor | Inspect and edit data items (signals, parameters, and states) in a table that you can sort, group, and filter |
Themen
Erste Schritte mit Signalen
- Signal Basics
Create, configure, identify, and test signals. - Signal Types
Learn about different types of signals, such as control signals and composite signals. - Signal Groups
Test or debug models by creating interchangeable groups of signal data.
Signaleigenschaften
- Investigate Signal Values
Initialize, access, and view the values that signals have during a simulation run. - Specify Signal Ranges
Specify the minimum and maximum value that a signal can attain during simulation. Fully specify your design and optimize data types and the generated code by specifying the minimum and maximum value that a signal can attain during simulation. - Determine Signal Dimensions
Inspect and control signal dimensionality. - Initialize Signals and Discrete States
Some systems contain signals and states whose initial values you must specify, for example, the starting position and velocity of a bouncing ball. - Configure Signals as Test Points
Use test points to exclude signal lines from optimizations which enables you to access the simulation data. - Specify Common Set of Signal Properties as Value Type
Create a reusable value type for common signal properties, such as the application-specific signal properties of wind velocity. (Seit R2021b)
Anzeige von Signaleigenschaften
- Highlight Signal Sources and Destinations
Trace a signal to its source or destination while debugging or exploring a model. - View Signal Values Using Port Value Labels
View signal values in the block diagram during simulation to understand, analyze, and debug your model. - Display Signal Attributes
Improve model readability by displaying signal attributes, such as data types and dimensions, in the block diagram. - Signal Label Propagation
Name a signal to identify and access it more easily. Take advantage of signal label propagation to reduce the effort of naming a signal that crosses system boundaries. - Trace Connections Using Interface Display
Display interfaces to trace signals through the nested levels, annotate signal characteristics, and view units associated with signals.
Signale variabler Größe
- Variable-Size Signal Basics
Create a variable-size signal whose size and values can change during a simulation. - Inspect Variable-Size Signals on Simulink Models
Inspect example models that show how to use variable-size signals. - Unbounded Variable-Size Signals
Model unknown size data using dynamic arrays.