Piecewise Linear and Step CSV Sources

Sep 30 2013, 6:00 PM PDT · 1 comment »

Need to inject a custom signal into your simulation? CircuitLab has long allowed piecewise linear and piecewise step sources, but we've now added a CSV source to the toolbox. You can now paste in a larger CSV file of (time,voltage) pairs, one per line, and the simulator will use your input for simulation.

Our first example is a multilevel inverter with a piecewise-step sinusoidal-like signal, and applied low-pass filtering:

Our second example is a simple switching power supply with a edge-defined gate drive signal and a digital inhibit feedback loop:

Try out these simulations and double-click the CSV sources to look at their contents!


Comments

The CSV source is incredibly helpful! I wrote a little JavaScript helper applet to generate data for digital waveforms, if anybody needs it: http://smeans.com/apps/pws-generator-for-circuitlab/

by smeans
December 13, 2016

Leave a Comment

Please sign in or create an account to comment.