From: MooseFET on
On Feb 15, 2:30 pm, 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?

Wave files can have many channels in them. IIRC, there is a way to
get
them in as multiple voltages.


You can also construct a logic circuit to make the needed waveforms to
make the inputs. This method only works well if there is a fairly
simple
rule that can be used to make the waveforms. I have done this by
making
a counter that just provided all possible combinations of loads on a
multiple output power supply. It was better to do this than to do
independent runs because the startup time was far longer than the time
to react to a change in loads.


From: JosephKK on
On Mon, 15 Feb 2010 16:30:09 -0600, Tim Wescott <tim(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.

Geez, did everybody forget the three phase rectifier efficiency that
Fred Bartoli did for me? Note the stepped load on the right.

Version 4
SHEET 1 1652 864
WIRE 192 -384 64 -384
WIRE 288 -384 192 -384
WIRE 560 -384 288 -384
WIRE 624 -384 560 -384
WIRE 944 -384 624 -384
WIRE 64 -288 64 -384
WIRE 192 -288 192 -384
WIRE 288 -288 288 -384
WIRE -192 -64 -688 -64
WIRE 288 -64 288 -224
WIRE 288 -64 -112 -64
WIRE -688 -48 -688 -64
WIRE 624 -16 624 -384
WIRE 752 -16 624 -16
WIRE -688 32 -816 32
WIRE 624 32 624 -16
WIRE 752 32 752 -16
WIRE 944 32 944 -384
WIRE -176 112 -688 112
WIRE 192 112 192 -224
WIRE 192 112 -96 112
WIRE -688 144 -688 112
WIRE 624 160 624 96
WIRE 752 160 752 112
WIRE 752 160 624 160
WIRE -816 256 -816 32
WIRE -688 256 -688 224
WIRE -688 256 -816 256
WIRE -192 288 -688 288
WIRE 64 288 64 -224
WIRE 64 288 -112 288
WIRE -688 368 -688 288
WIRE 64 368 64 288
WIRE 192 368 192 112
WIRE 288 368 288 -64
WIRE -816 496 -816 256
WIRE -752 496 -816 496
WIRE -688 496 -688 448
WIRE -688 496 -752 496
WIRE 64 512 64 432
WIRE 192 512 192 432
WIRE 192 512 64 512
WIRE 288 512 288 432
WIRE 288 512 192 512
WIRE 544 512 288 512
WIRE 624 512 624 160
WIRE 624 512 544 512
WIRE 944 512 944 112
WIRE 944 512 624 512
WIRE -752 544 -752 496
FLAG 544 512 VLneg
FLAG 560 -384 VLpos
FLAG -752 544 0
SYMBOL diode 48 432 M180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D1
SYMATTR Value FWD
SYMBOL diode 176 432 M180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D2
SYMATTR Value FWD
SYMBOL diode 272 432 M180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D3
SYMATTR Value FWD
SYMBOL diode 48 -224 M180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D4
SYMATTR Value FWD
SYMBOL diode 176 -224 M180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D5
SYMATTR Value FWD
SYMBOL diode 272 -224 M180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D6
SYMATTR Value FWD
SYMBOL ind2 -96 304 M270
WINDOW 0 32 56 VTop 0
WINDOW 3 5 56 VBottom 0
SYMATTR InstName L9
SYMATTR Value 220?
SYMATTR Type ind
SYMBOL ind2 -80 128 M270
WINDOW 0 32 56 VTop 0
WINDOW 3 5 56 VBottom 0
SYMATTR InstName L10
SYMATTR Value 220?
SYMATTR Type ind
SYMBOL ind2 -96 -48 M270
WINDOW 0 32 56 VTop 0
WINDOW 3 5 56 VBottom 0
SYMATTR InstName L11
SYMATTR Value 220?
SYMATTR Type ind
SYMBOL cap 608 32 R0
SYMATTR InstName C1
SYMATTR Value 5600?
SYMATTR SpiceLine V=400 Rser=.5
SYMBOL current 944 32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 116 Left 0
SYMATTR SpiceLine load
SYMATTR InstName I1
SYMATTR Value 0
SYMBOL voltage -688 48 R180
WINDOW 123 0 0 Left 0
WINDOW 39 24 -12 Left 0
SYMATTR SpiceLine Rser=.1
SYMATTR InstName V1
SYMATTR Value SINE(0 163.293 60 0 0 0)
SYMBOL voltage -688 240 R180
WINDOW 123 0 0 Left 0
WINDOW 39 24 76 Left 0
SYMATTR SpiceLine Rser=.1
SYMATTR InstName V2
SYMATTR Value SINE(0 163.293 60 0 0 120)
SYMBOL voltage -688 464 R180
WINDOW 123 0 0 Left 0
WINDOW 39 24 76 Left 0
SYMATTR SpiceLine Rser=.1
SYMATTR InstName V3
SYMATTR Value SINE(0 163.293 60 0 0 240)
SYMBOL res 736 16 R0
SYMATTR InstName R1
SYMATTR Value 5.6k
TEXT 416 24 Left 0 !.ic v(VLpos) 140\n.ic v(VLneg) -140 \n *precharge
TEXT -680 -344 Left 0 !.model FWD D Ron=10m Roff=100e6 Vfwd=0.35 Vrev=600
TEXT -512 536 Left 0 !.tran 0 1 0
TEXT -512 584 Left 0 !.meas tran TP avg(V(n001)*I(V1)) *True power
TEXT -512 640 Left 0 !.meas tran VRMS rms(V(n001))
TEXT -512 688 Left 0 !.meas tran IRMS rms(I(V1))
TEXT -512 744 Left 0 !.meas tran AP avg(VRMS*IRMS) *Apparent power
TEXT -512 800 Left 0 !.meas tran PF param TP/AP *Power factor
TEXT -616 0 Left 0 ;200V between phases
TEXT 768 192 Left 0 !.step I1 0 100 10
TEXT -232 -144 Left 0 !k1 L9 L10 L11 0.5
TEXT 696 576 Left 0 !.meas tran VL avg(v(VLpos)-v(VLneg))\n.meas tran Pout param VL*I(I1)
TEXT -200 -184 Left 0 ;Line reactor
From: Fred Bartoli on
Fred Abse a �crit :
> On Wed, 17 Feb 2010 07:26:20 -0800, JosephKK wrote:
>
>> Geez, did everybody forget the three phase rectifier efficiency that
>> Fred Bartoli did for me? Note the stepped load on the right.
>
> T'warn't Fred Bartoli,t'was I :-)
>

Oh, I thought even I forgot about it :-)

Well, I don't use much LTspice thanks to its poor GUI, so I couldn't
have done it...


--
Thanks,
Fred.
From: Joerg on
Fred Bartoli wrote:
> Fred Abse a �crit :
>> On Wed, 17 Feb 2010 07:26:20 -0800, JosephKK wrote:
>>
>>> Geez, did everybody forget the three phase rectifier efficiency that
>>> Fred Bartoli did for me? Note the stepped load on the right.
>>
>> T'warn't Fred Bartoli,t'was I :-)
>>
>
> Oh, I thought even I forgot about it :-)
>
> Well, I don't use much LTspice thanks to its poor GUI, so I couldn't
> have done it...
>

You guys are spoiled, or too young. Back when I started the "GUI" of
PSpice consisted of a rather small green CRT hanging off some CGA card.
I had the deluxe edition, a CRT in nicotine-yellow :-)

--
Regards, Joerg

http://www.analogconsultants.com/

"gmail" domain blocked because of excessive spam.
Use another domain or send PM.
From: Jim Thompson on
On Wed, 17 Feb 2010 14:25:26 -0800, Joerg <invalid(a)invalid.invalid>
wrote:

>Fred Bartoli wrote:
>> Fred Abse a �crit :
>>> On Wed, 17 Feb 2010 07:26:20 -0800, JosephKK wrote:
>>>
>>>> Geez, did everybody forget the three phase rectifier efficiency that
>>>> Fred Bartoli did for me? Note the stepped load on the right.
>>>
>>> T'warn't Fred Bartoli,t'was I :-)
>>>
>>
>> Oh, I thought even I forgot about it :-)
>>
>> Well, I don't use much LTspice thanks to its poor GUI, so I couldn't
>> have done it...
>>
>
>You guys are spoiled, or too young. Back when I started the "GUI" of
>PSpice consisted of a rather small green CRT hanging off some CGA card.
>I had the deluxe edition, a CRT in nicotine-yellow :-)

Sheeeesh! When I started using Spice I drew schematics on paper pads,
numbered the nodes, typed in the netlist and ran it under DOS.

Aaron eased my pain by writing a pre/post version controller which
numbered all the .CIR and .DAT files so I could keep track of all the
changes.

Data spewed forth from a tractor feed printer:

..001 *
..002 *
..003 *
..004 *

etc. Anyone else remember those days?

...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.