Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I'm running a lot of simulations in LT-Spice, and I need someway to run them all either sequentially or at the same time.

I was going to use Python, but I'm not entirely clear on how I would get past the GUI and open the netlists I have and be able to run them all and collect the data I need.

Is there some easier way to run a large ammount of simulations at once?

As an example I have about 25 models that I need to run with various transistor model files that I reference in a library folder that I swap out for every iteration. I have 4 transistor nominal models that each have different speeds that need to be tested.

Any suggestions would be much appreciated.

share|improve this question
    
Does it need to be LT Spice? I believe the heart of SPICE is a command line tool. –  dext0rb Jun 18 at 18:12
1  
This question appears to be off-topic because it is not about electronic design. –  Leon Heller Jun 18 at 18:18
7  
@LeonHeller on WHAT planet is SPICE not a part of design? –  placeholder Jun 18 at 18:21
1  
You'll find that Monte Carlo options are perfectly suited to this. You can Schmoo different parameters and it also can display the variations. LT-Spice MAY have disabled this by SPICE natively supports this. Start there –  placeholder Jun 18 at 18:23
    
Unfortunately for me, it does need to be LT-SPICE. Thank you for the Monte Carlo suggestion @placeholder –  Metal_Rainbow Jun 18 at 19:15

2 Answers 2

up vote 1 down vote accepted

If it just has to be LT Spice and you can't get past the GUI I would recommend the script program AutoIt. I've used it to automate some critical Windows applications which were lacking active-x-DDE-COM.dll-whatever. You can set it up to wait for files, push windows buttons, menuitems, call programs with arguments, etc.

Have a look at:

http://www.autoitscript.com/site/

http://www.autoitscript.com/forum/

I would go for Winbatch if you want to pay for a script program.

share|improve this answer

LTSpice can be run in batch mode with the -b command line switch.

From the LTSpice Help file:

-b: Run in batch mode. E.g. "scad3.exe -b deck.cir" will leave the data in file deck.raw

How to read and interpret the .raw output is left as an excercise for the reader.

Also note, among the command line switches:

-ascii: Use ASCII .raw files. Seriously degrades program performance.

share|improve this answer
    
How exactly do I run it though? In command line mode that is. I'm not usually a windows user and have no idea how to do this on a windows machine. –  Metal_Rainbow Jun 18 at 20:56
1  
I've never run it that way. You'll have to try it out for yourself. You can either open a command window ('cmd.exe' on the Start menu) or run it from whatever language you are using to sequence your tests. –  The Photon Jun 18 at 21:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.