SignalGenerators

Constant

This block is a constant value generator.

Step Generator

This block generates a step signal.

Ramp

This block generates a signal that starts at a specified time and value and increases by a specified rate.

RampSaturate

This block generates a ramp signal emulating the MSL Modelica block:
Modelica.Blocks.Sources.Ramp

SineWaveGenerator

This block is a sine wave generator : y(t) = M*sin(F*t+P)+Offset.

SquareWaveGenerator

This block generates a square wave.

Sawtooth

This block is a sawtooth wave generator.

Random

This block is a random wave generator. Each output component takes piecewise constant random values. Each time an event is received on the input event port, the outputs take new independent random values.

SignalGenerator

This block creates signals. The signals are defined by specifying a time vector and a value matrix providing the values of the signals at specified times. Signal values at intermediate points are obtained by interpolation. Several interpolation methods are available. This block can also generate periodic signals.

Counter

This externally activated block counts up or down depending on the choice of the block parameter, Rule.

ModuloCounter

This block increments its output so that after each activation the value of the block output is given by the previous value of this output plus one, modulo base, where base is a block parameter.

DefaultSource

This virtual block eliminates the presence of unconnected input ports in the diagram.

RealTime

This block generates the real time from the start of the simulation in seconds.

Time

This block is a time generator. The unique regular output is the current time.

SampleClock

This block generates a periodic activation signal. Periodic activation signals are special because they are made up of events that occur at regular intervals of time. Note that an activation signal made of up of events at regular intervals of time is not necessarily a periodic activation signal. For example the activation signal produced by the EventClock is not periodic. All periodic activation signals under the same SyncTag are considered synchronous.

EventGenerate

Several events are programmed at specified time instants.

ContinuousRandom

This block is a continuous random wave generator. Each output component takes piecewise constant random values. Each time an event is received on the block input activation port, the outputs take new independent random values. The output port size is given by the size of the parameter matrices. You can select the distribution.

DiscreteRandom

This block is a random signal generator based on discrete probability distribution. Each output component takes piecewise constant random values. Every time an event is received on the input event port, the outputs take new independent random values. Output port size is given by the size of the parameters matrices. You can choose the distribution.

Toggle

In this block, at each activation the output is toggled between quot;Firstquot; and quot;Secondquot; values. This action is useful for generating non periodic square wave signals.

Trapezoid

This block generates a trapezoidal signal emulating the MSL Modelica block:
Modelica.Blocks.Sources.Trapezoid

VariableFreqSine

This block is a variable frequency sinewave generator.

Keyboard

Outputs the value defined by the key that is pressed when the block is activated. Otherwise, the output is zero.