Author Topic: LTspice post-processors to animate .step plots with a slider?  (Read 979 times)

0 Members and 2 Guests are viewing this topic.

Offline RoGeorgeTopic starter

  • Super Contributor
  • ***
  • Posts: 7012
  • Country: ro
By default the plots displayed after a multiple simulation (with the .step directive) will plot all the simulation on the same chart, with traces of different colors for each step.  I know how to select only certain steps, but this is cumbersome and time consuming.  What I want is to have a slider, and when dragging the slider to select a different .step simulation from the results.  No data interpolation, just to switch the plotted set from the slider.

I want something that can change the plots like this, but with a slider to control the steps of the animation:





I crave for something like this almost every time I study something using LTspice, so I suspect others wanted a feature like that, too.  I could write my own program, but chances are somebody already did a tool to do just that.

Any ready made post-processor programs for LTspice simulation results?  (google doesn't show any)

Offline RoGeorgeTopic starter

  • Super Contributor
  • ***
  • Posts: 7012
  • Country: ro
Re: LTspice post-processors to animate .step plots with a slider?
« Reply #1 on: July 12, 2021, 07:53:53 am »
Just for the docs, couldn't find a ready made tool to do animations, but there is a Python module called "ltspice", module that can understand the .raw data files produced by LTspice:  https://pypi.org/project/ltspice/   :-+

Gave it a try yesterday.  The module doesn't know to work with .step SPICE directives directly, but it can grab a specified .step section from the data file, and from there all the currents and voltages can be extracted by their SPICE names, and can be used as Python arrays.

From there it's easy to do the rest in Python with numpy and matplotlib, including sliders or animated plots like the one above.



Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf