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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | Vps | +15 | Positive supply |
| SI.Voltage | Vns | -Vps | Negative supply |
| SI.Voltage | VAmp | 10 | Desired amplitude of output |
| SI.Resistance | R1 | 1000 | Arbitrary resistance for Schmitt trigger part |
| SI.Resistance | R2 | R1*Vps/VAmp | Calculated resistance for Schmitt trigger to reach VAmp |
| SI.Frequency | f | 10 | Desired frequency |
| SI.Resistance | R | 1000 | Arbitrary resistance of integrator part |
| SI.Capacitance | C | Vps/VAmp/(4*f*R) | Calculated capacitance of integrator part to reach f |