X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=RVGmRu7OtsOtVnrN7PKVELsWDONB4XHcVSVTmIGOGG4=; b=GuSLm9t0mOCgqAD/XAGKhEP8BRZfRLyaZVa9QFSs9+Z95H6Yq/gViEjMwtkLgnxSOb LYojcdXPv6AirlEMtJngsLOF35/NjyZ9Pr0ilYDsGiAzM6zcS+4fq4KEkTRz+mIM/VSA ggXJBpLJSDZLp+tw/m+mp0wptN/IDFe4oP/PBTuD47ZXFOQP9lb5c0yF9WobPsK54rsu WkGShMxQRHsn9tCyJip5wjsUWYDtvBBK1iCVWBGYIFWgzzx8SYxBHujD5PRsCPBgng5e HqiiQnk5ie180bm++3LgSnOuMjHbN5eYj+7J2vfoNfGJeFXlj/rrBsvD0BBz7xD3/4hq My1g== MIME-Version: 1.0 X-Received: by 10.112.135.99 with SMTP id pr3mr16466035lbb.61.1421561148139; Sat, 17 Jan 2015 22:05:48 -0800 (PST) In-Reply-To: <5ff846f7.421e8d2d.54b90bbc.c5ac2@o2.pl> References: <20150116121619 DOT Horde DOT nPQGevRm4SzyvBjA40aa6Q2 AT webmail DOT in-berlin DOT de> <5ff846f7 DOT 421e8d2d DOT 54b90bbc DOT c5ac2 AT o2 DOT pl> Date: Sun, 18 Jan 2015 01:05:48 -0500 Message-ID: Subject: Re: [geda-user] Bunch Simulation ngspice From: Evan Foss To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t0I65v0h018519 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk I typically do this via Makefiles. I have the different parameters for the simulations in the schematics that way they are printed along with everything else when I do post script export of the schematics. I have the different things that need to be connected in the circuits split off again in different schematic pages. The Makefile just runs the simulations mixing and matching schematic pages. Not to kick off the holy war but this is exactly what we have make for. Evan On Fri, Jan 16, 2015 at 8:01 AM, michalwd1979 wrote: > Hello Hagen, > > I've done something like this using Python. I've used the output file to > load data and plot them with Matplotliob and I've manually (from python) > modified the simulation file. > The problem is that You have to prepare the CIR file right, for example use > .control, .endc block and include write command there. It is quite possible > that I will find some examples of my old simulations if You are interested. > > Now look at the ngspice.py module, "runng" and "fromng" should be most > important functions. There is also a "topwl" function that can create a PWL > source subcircuit from given waveform data - nice to include real world > signals gathered on scope to simulation. > > Best Regards, > Michael W. > > > Dnia 16 stycznia 2015 12:16 Hagen SANKOWSKI > napisaƂ(a): > > > > Hello geda-users! > > I like to run a bunch of simulations with ngspice, in the way of > - run a netlist > - change not only one parameter (sweep I know) but also replace > circuits/models > - run the modified netlist again > - compare the results 'auto-magic' > all controled by a script. > > The Tcl Interface (in contrast to the geda scheme stuff) I already noticed. > I wonder if someone has an idea/script/example/hint how to do this > efficently? > > Regards, > Hagen. > > > -- Home http://evanfoss.googlepages.com/ Work http://forge.abcd.harvard.edu/gf/project/epl_engineering/wiki/