Main Content

Signals

R2026b
Configure and display signal properties

Signals transmit data between two blocks in a simulation. The data could be the calculated output of a block, or simply a message. The value of signals are calculated at all points during the simulation time. You can display the signal data and properties during and after simulation, see the real-time values on a block diagram, or you can log the values as variables in the workspace. Also, you can export the signals to a file or to a workspace to investigate further.

You can control the mathematical behavior of a model by specifying signal characteristics such as numeric data type, initial value, and value range. For more information, see Signal Basics.

Blocks

expand all

Signal Specification blockSignal SpecificationSpecify desired dimensions, sample time, data type, numeric type, and other attributes of signal
IC blockICSet initial value of signal
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

Functions

expand all

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

Objects

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
Property InspectorEdit parameters and properties for any Simulink model element
Model Data EditorInspect and edit data items (signals, parameters, and states) in a table that you can sort, group, and filter
Component Interface ViewDisplay component interfaces to trace port connections and author ports

Model Settings

expand all

Signal label mismatchDiagnostic action to take when signal has multiple names through propagation
Unconnected block input portsDiagnostic action to take when block has unconnected input
Unconnected block output portsDiagnostic 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
String truncation checkingDiagnostic action to take if string signal value is truncated

Topics

Get Started with Signals

  • 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.

Signal Properties

Display Signal Properties

Variable-Size Signals

Featured Examples