[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnucap] gnucap development snapshot 2008-02-11
From: |
al davis |
Subject: |
Re: [Help-gnucap] gnucap development snapshot 2008-02-11 |
Date: |
Tue, 12 Feb 2008 23:03:05 -0500 |
User-agent: |
KMail/1.9.7 |
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.