Skip to content

Signal Generator ​

Programmable function generator. It emits periodic sine, square, triangle or sawtooth waves with configurable amplitude, frequency, phase and offset, or a one-shot test stimulus: a step, a ramp or a rectangular pulse that starts at a set time and changes the output from Offset by A.

Category: Sources

Ports ​

PortKindSignalNotes
outControl outputReal

Parameters ​

ParameterTypeDefaultUnitsDescriptionID
WaveformChoice: Sine / Square / Triangle / Sawtooth / Step / Ramp / PulseSine—Sine, Square, Triangle and Sawtooth are periodic: A is the peak, f the frequency and φ the phase. Step, Ramp and Pulse are one-shot: the output sits at Offset, then changes by A at the start time (Step), over the ramp time (Ramp), or for the pulse width (Pulse).waveform
ANumber1—Peak value of a periodic waveform, or the change from Offset for Step, Ramp and Pulse.amplitude
fNumber1—frequency
φNumber0—phase
OffsetNumber0—Added to the output. For Step, Ramp and Pulse it is the level before the start time.offset
Start timeNumber0.1s (also ms)Time at which the step, ramp or pulse begins.t_start
Ramp timeNumber0.1s (also ms)Time the ramp takes to change by A. Zero makes it a step.ramp_time
Pulse widthNumber0.05s (also ms)How long the pulse lasts.pulse_width

Used in samples ​

In the course ​