Main Content

Sources

Fournir des données d'entrée pour la simulation avec des blocs qui définissent et génèrent des signaux ou chargent des données de signaux

Utilisez les blocs de la bibliothèque Sources pour fournir des signaux en entrée de la simulation.

  • Générez des signaux dans votre modèle avec des blocs comme Sine Wave et Constant.

  • Chargez les données de signaux de l'espace de travail ou d'un fichier avec des blocs comme Playback, From Workspace, From File et From Spreadsheet.

  • Créez et modifiez des signaux avec des blocs comme Signal Editor.

Blocs

Band-Limited White NoiseIntroduce white noise into continuous system
Chirp SignalGenerate sine wave with increasing frequency
ClockDisplay and provide simulation time
ConstantConstant value
Counter Free-RunningCount up and overflow back to zero after reaching maximum value for specified number of bits
Counter LimitedCount up and wrap to zero after specified upper limit
Digital ClockOutput simulation time at specified sampling interval
Enumerated ConstantGenerate enumerated constant value
From FileLoad data from MAT file into Simulink model
From SpreadsheetRead data from spreadsheet
From WorkspaceLoad signal data from workspace into Simulink model
GroundGround unconnected input port
In Bus ElementSelect input from external port
InportCreate input port for subsystem or external input
PlaybackLoad data from workspace, file, or Simulation Data Inspector (depuis R2022b)
Pulse GeneratorGenerate square wave pulses at regular intervals
RampGenerate constantly increasing or decreasing signal
Random NumberGenerate normally distributed random numbers
Repeating SequenceGenerate arbitrarily shaped periodic signal
Repeating Sequence InterpolatedOutput discrete-time sequence and repeat, interpolating between data points
Repeating Sequence StairOutput and repeat discrete time sequence
Signal EditorDisplay, create, edit, and switch interchangeable scenarios
Signal GeneratorGenerate various waveforms
Sine WaveGenerate sine wave, using simulation time as time source
StepGenerate step function
Uniform Random NumberGenerate uniformly distributed random numbers
Waveform GeneratorOutput waveforms using signal notations