Prev: 240V AC power switch - based on current drawn from outlet
Next: Heatsinking surface mount high power MOSFETS
From: Tim Wescott on 15 Feb 2010 17:30 Does LTSpice have much in the way of automation capabilities? I'm working on a switcher design, half in mathemagic land, half in grotty old real circuits land -- I want to simulate the controller with PWM voltages, and look at how the circuit responds. So I'd like to run the circuit with a bunch of different duty cycles. But it's a complex circuit, so I need a bunch of different PWM's, all synchronized together. Is there a way to get LTSpice to carry a variable, use that variable in it's .trans card, and either set it once and run a simulation, or (better) run a simulation from the command line? TIA. -- www.wescottdesign.com
From: langwadt on 15 Feb 2010 17:35 On 15 Feb., 23:30, Tim Wescott <t...(a)seemywebsite.com> wrote: > Does LTSpice have much in the way of automation capabilities? > > I'm working on a switcher design, half in mathemagic land, half in grotty > old real circuits land -- I want to simulate the controller with PWM > voltages, and look at how the circuit responds. So I'd like to run the > circuit with a bunch of different duty cycles. But it's a complex > circuit, so I need a bunch of different PWM's, all synchronized > together. Is there a way to get LTSpice to carry a variable, use that > variable in it's .trans card, and either set it once and run a > simulation, or (better) run a simulation from the command line? > > TIA. > > --www.wescottdesign.com you can run ltspice from a command line it is the help somewhere, it been discussed here before, search for "wrapper around Spice" -Lasse
From: Joerg on 15 Feb 2010 19:54 Tim Wescott wrote: > Does LTSpice have much in the way of automation capabilities? > > I'm working on a switcher design, half in mathemagic land, half in grotty > old real circuits land -- I want to simulate the controller with PWM > voltages, and look at how the circuit responds. So I'd like to run the > circuit with a bunch of different duty cycles. But it's a complex > circuit, so I need a bunch of different PWM's, all synchronized > together. Is there a way to get LTSpice to carry a variable, use that > variable in it's .trans card, and either set it once and run a > simulation, or (better) run a simulation from the command line? > If it's really odd stuff you could pipe it in as WAV files. The help file contains some info about that. Helmut Sennewald had a more clever method with bitstreams but I don't exactly remember that. -- Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.
From: Joerg on 15 Feb 2010 20:02 Joerg wrote: > Tim Wescott wrote: >> Does LTSpice have much in the way of automation capabilities? >> >> I'm working on a switcher design, half in mathemagic land, half in >> grotty old real circuits land -- I want to simulate the controller >> with PWM voltages, and look at how the circuit responds. So I'd like >> to run the circuit with a bunch of different duty cycles. But it's a >> complex circuit, so I need a bunch of different PWM's, all >> synchronized together. Is there a way to get LTSpice to carry a >> variable, use that variable in it's .trans card, and either set it >> once and run a simulation, or (better) run a simulation from the >> command line? >> > > If it's really odd stuff you could pipe it in as WAV files. The help > file contains some info about that. Helmut Sennewald had a more clever > method with bitstreams but I don't exactly remember that. > Found it, it's called PWL Files, explained here: http://ltspice.linear.com/software/scad3.pdf -- Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.
From: Jim Thompson on 15 Feb 2010 20:07
On Mon, 15 Feb 2010 16:54:27 -0800, Joerg <invalid(a)invalid.invalid> wrote: >Tim Wescott wrote: >> Does LTSpice have much in the way of automation capabilities? >> >> I'm working on a switcher design, half in mathemagic land, half in grotty >> old real circuits land -- I want to simulate the controller with PWM >> voltages, and look at how the circuit responds. So I'd like to run the >> circuit with a bunch of different duty cycles. But it's a complex >> circuit, so I need a bunch of different PWM's, all synchronized >> together. Is there a way to get LTSpice to carry a variable, use that >> variable in it's .trans card, and either set it once and run a >> simulation, or (better) run a simulation from the command line? >> > >If it's really odd stuff you could pipe it in as WAV files. The help >file contains some info about that. Helmut Sennewald had a more clever >method with bitstreams but I don't exactly remember that. In PSpice, and I would imagine in LTspice, since Mike Engelhardt is quite the clever fellow, you can parameterize the PWM and plot "Performance Analyses". ...Jim Thompson -- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food. |