Hauptinhalt

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Signale

R2026a
Konfigurieren und Anzeige von Signaleigenschaften

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

alle erweitern

Signal Specification blockSignal SpecificationSpecify desired dimensions, sample time, data type, numeric type, and other attributes of signal
IC blockICSetzen des Anfangswerts des Signals
Probe blockProbeOutput signal attributes, including width, dimensionality, sample time, and complex signal flag
Rate TransitionHandle transfer of data between blocks operating at different rates
Signal Editor blockSignal EditorDisplay, create, edit, and switch interchangeable scenarios
Weighted Sample Time blockWeighted Sample TimeSupport calculations involving sample time
Width blockWidthOutput width of input vector
Bus to Vector blockBus to VectorConvert virtual bus to vector
Signal Conversion blockSignal ConversionConvert signal to new type without altering signal values

Funktionen

alle erweitern

disableimplicitsignalresolutionConvert model to use only explicit signal resolution
signalBuilderToSignalEditorImport signal data and properties from Signal Builder block to Signal Editor block
Simulink.SignalSpecify instance-specific properties of signal or discrete state
Simulink.ValueTypeSpecify common set of signal properties for reuse
sltraceAnalyze structure of model by tracing signal sources and destinations
highlightHighlight path to signal sources or destinations in model
removehighlightRemove highlighting for sltrace.Graph object from model

Objekte

sltrace.GraphSignal path traced using sltrace function

Tools

Signal PropertiesView and edit signal properties
Instrumentation PropertiesView and edit logging and visualization properties for logged signal
PropertyInspectorEdit parameters and properties for any Simulink model element
Model DataEditorInspect and edit data items (signals, parameters, and states) in a table that you can sort, group, and filter
ComponentInterface ViewDisplay component interfaces to trace port connections and author ports

Modelleinstellungen

alle erweitern

Signal label mismatchDiagnostic action to take when signal has multiple names through propagation
Unconnected block inputportsDiagnostic action to take when block has unconnected input
Unconnected block outputportsDiagnostic action to take when block has unconnected output
Unconnected lineDiagnostic action to take when model has unconnected line or unmatched Goto or From block
Signal resolutionOption to specify how model resolves signals and states to Simulink.Signal objects
Underspecified data typesDiagnostic action to take if the software is unable to infer signal data type
Underspecified dimensionsDiagnostic action to take if the software is unable to infer signal dimensions
Stringtruncation checkingDiagnostic action to take if string signal value is truncated

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

Anzeige von Signaleigenschaften

Signale variabler Größe

Enthaltene Beispiele