SignalGenerator

The SignalGenerator creates a signal of adjustable type (e.g., constant, sine, pulse, ...) and shape (e.g., amplitude, frequency, slope, ...).

Element

Direction

Remark

out::continuous

output

signal generator output value

WaveType::udisc

parameter; determines the type of the signal

Wave Type =

signal type

relevant parameters

1

constant

amplitude, StartDelay

2

ramp

slope, StartDelay

3

sine

amplitude, frequency, PhaseShift, StartDelay

4

pulse

amplitude, dutyCycle, frequency, StartDelay

5

falling sawtooth

amplitude, dutyCycle, frequency, StartDelay

6

raising sawtooth

amplitude, dutyCycle, frequency, StartDelay

< 1 or < 6

0

none

amplitude::continuous

parameter; amplitude of the generated signal

WaveType =

meaning of amplitude

1

signal value

3

sine amplitude

4

pulse height

5 / 6

maximum of sawtooth

dutyCycle::continuous

parameter; the fraction of the period in which the pulse/sawtooth is active

0 ≤ dutycycle ≤ 1

frequency::continuous

parameter; frequency (in [Hz]) of the sine, pulse or sawtooth

PhaseShift::continuous

parameter; phase shift of the sine, pulse or sawtooth

slope::continuous

continuous parameter; slope of the ramp

StartDelay::continuous

continuous parameter; delay (in [s]) before the signal starts

internal1::udisc[2]

discrete state; reserved for internal calculations

  • internal1[0] is dutyCycleNumber (dutyCycle discretized in h-steps)
  • internal1[1] is PulsePeriodNumber (PulsePeriod discretized in h-steps)

internal2::continuous[2]

discrete state; reserved for internal calculations

  • internal2[0] is h: integration step size
  • internal2[1] is SimuStartTime: point of time when simulation was started