T
Tom Bruhns
Guest
Hi all,
I'm using a pretty vanilla Berkeley Spice 3f4. The interactive
interpreter manual documents an "alter" command. Long ago I managed
to divine that for simple alterations of single-parameter components
such as resistors, I need to put in an equals-sign instead of just a
space between the device and the value, at least in my version, but
I'll be darned if I can figure out how to alter one parameter of a
multi-parameter component. In particular I have an independent
source:
vin 1 0 dc 0 ac 1
whose AC magnitude I wish to alter. Things I've tried so far that
don't work:
alter vin[ac]=0
alter @vin[ac]=0
alter @vin[ac] = 0
alter #vin[ac]=0
alter @vin(ac)=0
alter @vin[AC]=0
alter @vin[ac]=[ 0 0 ] (thinking maybe it needs both mag and phase)
alter @vin[ac]=(0;0)
....
Most of these simply kill the SPICE session. alter@vin[ac]=0 seems to
come closest to working, but SPICE complains,
Error: no such parameter ac.
Error: no such parameter ac].
What's the magic incantation for this puppy?
Cheers,
Tom
I'm using a pretty vanilla Berkeley Spice 3f4. The interactive
interpreter manual documents an "alter" command. Long ago I managed
to divine that for simple alterations of single-parameter components
such as resistors, I need to put in an equals-sign instead of just a
space between the device and the value, at least in my version, but
I'll be darned if I can figure out how to alter one parameter of a
multi-parameter component. In particular I have an independent
source:
vin 1 0 dc 0 ac 1
whose AC magnitude I wish to alter. Things I've tried so far that
don't work:
alter vin[ac]=0
alter @vin[ac]=0
alter @vin[ac] = 0
alter #vin[ac]=0
alter @vin(ac)=0
alter @vin[AC]=0
alter @vin[ac]=[ 0 0 ] (thinking maybe it needs both mag and phase)
alter @vin[ac]=(0;0)
....
Most of these simply kill the SPICE session. alter@vin[ac]=0 seems to
come closest to working, but SPICE complains,
Error: no such parameter ac.
Error: no such parameter ac].
What's the magic incantation for this puppy?
Cheers,
Tom