Code Monkey home page Code Monkey logo

ltspice-cli's Introduction

LTspice-cli

About

LTspice-cli is a command line tool, which enables running simulations in LTspice from the command line. It also has the ability to specify a file containing the circuit parameters which the simulations should be run with. LTspice-cli is written in Python 2.7, and requires NumPy to run. The tool is only tested with LTspice IV.

How to use

After downloading the files, the config.py file must be edited. Once configurated, a simulation can be run using

python run.py -r

To specify a file containing parameters, use

python run.py -f <inputfile>

Use option -h to see help in the command line.

Parameter file

A file can be used to set the parameters in a circuit simulation. A parameter must first be set in LTspice, for example a resistor:

.param R=500

To change a parameter at run time, the set keyword in the parameter file can be used as follows:

set R 1k

The resistor R will now be set to 1k before running the simulation. To set a range of variables to be used in simulation, the run keyword is used. To simulate with the values 1, 100 and 1k for a capacitor C, the following line would be used:

run C 1 100 1k

Both set and run can be used in the same parameter file. Using the set command alone will not run a simulation, only change the LTspice file. To comment a line, begin the line with #.

ltspice-cli's People

Contributors

joskvi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.