Re: [ng-spice] u2 function


To ng-spice@ieee.ing.uniroma1.it
From widlok <widlok@uci.agh.edu.pl>
Date Tue, 02 May 2000 11:34:04 +0200
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
References <Pine.LNX.3.96.1000430164110.25962B-100000@ieee.ing.uniroma1.it >
Reply-To ng-spice@ieee.ing.uniroma1.it



Paolo Nenzi wrote:

>
> What is a galvoscanner ? Anyway, your function should work better than the
> original one because it is "more" continuous (what is the function you
> used ?). The real problem is the time constant, how fast the funxtion
> raises or decreases. The time constant should be 1 or 2 order of magnitude
> smaller than the smallest time constant in the circuit.
>
> > Anyway, "u2" works better then "u" in if-then-else expressions, so maybe
> > we should keep it?
>
> Why not ?
>
> Paolo

Hi Paolo,

    My u2 is much simpler, because it was very difficult to get time there.
u2(x) returns 0 if x<0, 1 if x>1 and x if 0<x<1. This works really good in my
model. Galvoscanner is sth similar to HDD head positioner, but it has position
detector build in, and it is possible to mount mirror on its roller.

I also had some problems with ".options" Finally I removed 2 (hopefully) 
unused
functions form source, and find out that set ITL3=xxx does not work. If anyone
know how to use options for command line simulation, please tell me. I will 
try
to fix it anyway.

Michael




Partial thread listing: