Resampling of simulation output

Currently, the time step in a transient simulation can be set to any suitable value. In the simulation, however, the time step can be reduced depending on the signal steepness. This is usually the case. In many cases, however, a fixed interval is necessary. For example, to be able to compare simulation results synchronously with each other. Even if an audio file is to be generated, the sample interval must be constant.

Is it possible to specify a constant time step for the transient simulation?
If not, is it possible to resample the signal with a constant interval afterwards?

Simulators adjust the time step to keep the error below certain threshold. Assuming you’re making an audio circuit simulation with some nonlinearities, if your signal has high frequency components, you need small enough timestep - otherwise they will alias into the audible spectrum. I suggest not fiddling with the timestep but rather make a polyphase resampling filter (just postprocess the simulator output in python/scipy…)
T.

Put the line
.options interp
into a text box on the Eeschema canvas.

Interpolation is done by using the transient command inputs: Interpolate between TSTART and TSTOP with intervall TSTEP.

1 Like