Main Content

Sources

R2026b
Blocks that generate or load input signals for simulation, such as Constant, Sine Wave, and From Workspace

Use blocks from the Sources library to provide input signals for simulation.

  • Generate signals in your model using blocks such as Sine Wave and Constant.

  • Load signal data from the workspace or a file using blocks such as Playback, From Workspace, From File, and From Spreadsheet.

  • Create and edit signals interactively using the Signal Editor block.

To add blocks from this library to your model, see Add Blocks to Models.

Blocks

Band-Limited White Noise blockBand-Limited White NoiseIntroduce white noise into continuous system
Chirp Signal blockChirp SignalGenerate sine wave with increasing frequency
Clock blockClockDisplay and provide simulation time
Constant blockConstantConstant value
Counter Free-Running blockCounter Free-RunningCount up and overflow back to zero after reaching maximum value for specified number of bits
Counter Limited blockCounter LimitedCount up and wrap to zero after specified upper limit
Digital Clock blockDigital ClockOutput simulation time at specified sampling interval
Enumerated Constant blockEnumerated ConstantGenerate enumerated constant value
From File blockFrom FileLoad data from MAT file into Simulink model
From Spreadsheet blockFrom SpreadsheetRead data from spreadsheet
From Workspace blockFrom WorkspaceLoad signal data from workspace into Simulink model
Ground blockGroundGround unconnected input port
In Bus Element blockIn Bus ElementSelect input from external port
Inport blockInportCreate input port for subsystem or external input
Playback blockPlaybackLoad data from workspace, file, or Simulation Data Inspector (Since R2022b)
Pulse Generator blockPulse GeneratorGenerate square wave pulses at regular intervals
Ramp blockRampGenerate constantly increasing or decreasing signal
Random Number blockRandom NumberGenerate normally distributed random numbers
Repeating Sequence blockRepeating SequenceGenerate arbitrarily shaped periodic signal
Repeating Sequence Interpolated blockRepeating Sequence InterpolatedOutput discrete-time sequence and repeat, interpolating between data points
Repeating Sequence Stair blockRepeating Sequence StairOutput and repeat discrete time sequence
Signal Editor blockSignal EditorDisplay, create, edit, and switch interchangeable scenarios
Signal Generator blockSignal GeneratorGenerate various waveforms
Sine Wave blockSine WaveGenerate sine wave, using simulation time as time source
Step blockStepGenerate step function
Uniform Random Number blockUniform Random NumberGenerate uniformly distributed random numbers
Waveform Generator blockWaveform GeneratorOutput waveforms using signal notations

Tools

Library BrowserFind and add blocks to model

Topics