sudden6 / PyLTSpice

Set of tools to interact with LTSpice. See README file for more information.

Home Page:http://www.nunobrum.com/ltspicer2.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

PySpicer is a toolchain of python utilities design to interact with LTSpice Electronic Simulator.

What is contained in this repository

  • LTSteps.py An utility that extracts from LTSpice output files data, and formats it for import in a spreadsheet,s uch like Excel or Calc.

  • LTSpiceRaw_Reader.py A pure python class that serves to read raw files into a python class.

  • Histogram.py Uses numpy and matplotlib to create an histogram and calculate the sigma deviations. This is useful for Monte-Carlo analysis.

  • LTSpiceBatch.py This is a script to launch LTSpice Simulations. This is useful because:

    • Can overcome the limitation of only stepping 3 parameters
    • Different types of simulations .TRAN .AC .NOISE can be run in a single batch
    • The RAW Files are smaller and easier to treat
    • When used with the LTSpiceRaw_Reader.py and LTSteps.py, validattion of the circuit can be done automatically.
    • Different models can be simulation in a single batch. The principle of operation is the following :
      1. Add to the Spice circuit a .INC sim_settings.lib . In this include simulation directives are written by the script per each simulation call.
      2. Use the python script to update the simulation directives and call LTSpice to run the simulation in command line.
      3. When the simulation is complete, the simulation results are renamed according to user guidance.

    Note: It only works with Windows based installations.

To whom do I talk to?

History

  • Version 0.6 Histogram.py now has an option to make the histogram directly from values stored in the clipboard

  • Version 0.5 The LTSpice_RawReader.py now uses the struc.unpack function for a faster execution

  • Version 0.4 Added LTSpiceBatch.py to the collection of tools

  • Version 0.3 A version of LTSteps that can be imported to use in a higher level script

  • Version 0.2 Adding LTSteps.py and Histogram.py

  • Version 0.1 First commit to the bitbucket repository.

About

Set of tools to interact with LTSpice. See README file for more information.

http://www.nunobrum.com/ltspicer2.html

License:GNU General Public License v3.0


Languages

Language:Python 96.4%Language:AGS Script 3.6%