On Tuesday 12 February 2008, Orestes Mas wrote:
> Can the parameters be swept in any way?
>
> For example, to model a voltage divider using a potentiometer
> I enter the following circuit:
>
> .param alpha=0
> Vg 1 0 DC 10V
> R1 1 2 {10k*(1-alpha)+0.1}
> R2 2 0 {10k*alpha+0.1}
> .print op v(2)
> **Here I'd like to sweep the 'alpha' parameter from 0 to 1 to
> simulate the change of the potentiometer's cursor position.
> I've tried with the "sweep" and "dc" commands, with no luck.

I was wondering how long it would take for someone to ask for 
that ..   about a day.

I can't think of an easy way yet, without some coding.  It's 
coming.

You can do:

.param alpha=.1
.op
.param alpha=.2
.op
.param alpha=.3

etc....

The old sweep command and the dc command do not sweep params.  
old code.....    

This is high on the to-do list.




_______________________________________________
Help-gnucap mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnucap

Reply via email to