Alexander Ross Alexander Ross

Custom Worse Case & Monte Carlo Wrapper for PyLTSpice

In this post, I will discuss the new library/wrapper that I have created that will take the good work from the PyLTSpice team and expand it to make it “easier” to perform worse case and Monte Carlo analysis. I use the word “easier” but really to me its easier, it may not be any better than what is already available in the PyLTSpice library already. However with that said, I like this new library because I can easily list out my parts, their tolerances, and the type of distribution that these parts might have in a simple dictionary.

Read More
Tutorial Alexander Ross Tutorial Alexander Ross

Cooking LTspice with Python

Did you know that you can use Python to automate and improve your workflow when simulating circuits in LTspice? It’s surprisingly straightforward, and it opens up a wide range of possibilities. LTspice is a powerful and free SPICE simulator that has been a staple in the electronics world for years, but it hasn’t seen many major updates or modern integrations. That’s where Python comes in.

By combining LTspice with Python, you can script your simulations, sweep parameters, analyze results, and even generate plots automatically. Whether you’re running repetitive simulations, batch processing netlists, or just want to organize your results more effectively, Python can save you time and reduce errors.

In this post, I’ll walk through how to set up a simple Python script that runs an LTspice simulation, extracts data from the raw output files, and displays results in a clean, customizable way. It’s a great way to bring new life to an old but dependable tool, and it can be a game-changer if you’re doing a lot of circuit simulation work.

Read More