help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnucap] Expression to set value of VCVS?


From: al davis
Subject: Re: [Help-gnucap] Expression to set value of VCVS?
Date: Fri, 30 Jul 2010 17:23:28 -0400

On Friday 30 July 2010, Stefan Dröge wrote:
> Hi, I just tried to set the value of an VCVS by using an
> expression, but can't get it to work.
> Here I what I want to do:
> 
> If Input voltage Vin < -5mV then Vout := 0V
> If Vin > 5mV then Vout := 5V
> else (Vin between -5mV and 5mV) linear interpolated between
> 0V and 5V.
> 
> Here the code I tried:
> ---
> ECMP 11 0 10 9 FIT (-5MV,0V 5MV,5V) Order=1
> ---

You need to specify what happens out of range.  If you don't, 
(with order=1) it extends the slope of the end intervals.  You 
can either add flat intervals above and below, or use the 
parameters "above" and "below"


> and here another line that failed:
> ---
> ECMP 11 0 10 9 VCVS E={FIT (-5MV,0V 5MV,5V) Order=1}

This syntax doesn't work.  There in nothing that says it works.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]