[:de]Wer gelegentlich eine Schaltung simulieren will, wird sicher früher oder später über SwitcherCAD stolpern. Dieser Artikel zeigt wie man Sägezahn oder Dreieck-Spannungen damit erzeugen kann.
[:en]One who needs to simulate a circuit will sooner or later stumple across SwitcherCAD. This article shows how to generate a saw tooth or triangular voltage.
[:][:de]
Die Firma Linar Technology stellt auf ihrer Webseite das Tool SwitcherCAD kostenlos zur Verfügung.
Es ist ein Spice-basiertes Simulationstool, dass man dazu nutzen kann um Schaltungen zu simulieren. Leider ist es nur für die Windows-Plattform verfügbar.
Erzeugen von Sägezahn- oder Dreieck-Spannungen
Im Component-Dialog eine Spannungsquelle „voltage“ auswählen und mit OK in den Schaltplan übernehmen.
Über einen Rechts-Klick auf die Spannungsquelle im Schaltplan kann man jetzt den Dialog für die Spannungsquelle aufrufen.
Im Dialog für die Spannungsquelle muss man jetzt auf Advanced klicken, was den erweiteren Dialog aufruft.
Wählt man jetzt als Funktion „PULSE“ aus. Für eine Sägezahnspannung sind die Parameter „T rise“ „T fall“ „T on“ und „T period“ entscheident. Für dieses Beispiel wollen wir eine Sägezahnspannung von 20 Hz erzeugen. Dazu muss „T period“ 50 ms sein. „T rise“ könnte man jetzt auch auf 50 ms und „T on“ und „T fall“ auf 0 setzen, was jedoch etwas seltsame Simulationsergebnisse zur Folge haben kann. Es hat sich als nützlich erwiesen, „T on“ und „T fall“ zumindest auf 1 ns zu setzen und diese Zeiten von „T on“ abzuziehen und das Ergebnis bei „T raise“ einzutragen. Es muss natürlich auch bei „Von“ ein Wert ungleich 0 stehen, sonst wird man keine Spannung messen können.
Das Ergebnis schaut dann so aus:
Für eine Dreieckspannung ist nur eine kleine Anpassung nötig. „T raise“ wird auf 25 ms, „T on“ auf 0 und „T fall“ ebenfalls auf 25ms gesetzt.
[:en]
The company Linar Technology provides on its web site the tool SwitcherCAD for free.
It is a Spice base simulation tool that is uses to simulate curcuits. Unfortunatly it is only available for the Windows platform.
Generations Of Saw Tooth Or Triangular Voltages
From the component dialog choose a voltage source „voltage“ and place it in the schematic with OK.
With a right click on the voltage source in the schematic open the dialog für the voltage source.
In this dialog click on Advanced to open the advanced dialog.
Choose the function „PULSE“. To generate a saw tooth the parameters „T rise“ „T fall“ „T on“ and „T period“ are important.
For this example we want to generate a saw tooth with 20 Hz.
„T period“ needs to be 50 ms.
„T rise“ could be set to 50 ms and „T on“ and „T fall“ to 0, but this can leed to strange simulation results. It has been proved to set „T on“ and „T fall“ at least to 1 ns and substract this times from „T on“. The result must be entered for „T raise“. Of course you need to enter a value for „Von“ higher than 0 to have a voltage that can be measured.
The result should then look like this:
To generate a triangular volage only a little modification is necessary. „T raise“ will be set to 25 ms, „T on“ to 0 and „T fall“ will also set to 25ms.
[:]