modelSignalGenerator

Rectangle-Triangle generator

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This signal generator consists of a Schmitt trigger and an integrator. The output of the Schmitt trigger part opamp (opAmp1) is a rectangular signal with the amplitude VAmp and the frequency f. The output of the integrator part opamp (opAmp2) is a triangular signal of also the amplitude Vamp and the frequency f.

Source:

U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 14.5.2

Parameters

TypeNameDefaultDescription
SI.VoltageVps+15Positive supply
SI.VoltageVns-VpsNegative supply
SI.VoltageVAmp10Desired amplitude of output
SI.ResistanceR11000Arbitrary resistance for Schmitt trigger part
SI.ResistanceR2R1*Vps/VAmpCalculated resistance for Schmitt trigger to reach VAmp
SI.Frequencyf10Desired frequency
SI.ResistanceR1000Arbitrary resistance of integrator part
SI.CapacitanceCVps/VAmp/(4*f*R)Calculated capacitance of integrator part to reach f

Components

TypeNameDefaultDescription
Modelica.Electrical.Analog.Ideal.OpAmpLimitedopAmp1
Modelica.Electrical.Analog.Basic.Resistorr2
Modelica.Electrical.Analog.Basic.Resistorr1
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Electrical.Analog.Ideal.OpAmpLimitedopAmp2
Modelica.Electrical.Analog.Basic.Capacitorc
Modelica.Electrical.Analog.Basic.Resistorr
Modelica.Electrical.Analog.Sensors.VoltageSensorvOutRectangle
Modelica.Electrical.Analog.Sensors.VoltageSensorvOutTriangle