[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: getting started with geda simulation



Al Davis hinted me to gnucap. So I decided to give it a try.
The utility gspiceui seems to be the glue between gschem and gnucap or 
ngspice. It compiled out of the box. Thanks to the geda CD image gnucap 
and ngspice were already installed. Unfortunately I got stuck with my 
first circuit --- A resistor and a cap that form a simple low pass. This 
what I did:

1) Draw circuit in gschem, using symbols from the standard lib. Named the 
nets that go in and out. Symbols I used are 
     resistor-1.sym 
     capacitor-1.sym
     gnd-1.sym
     vpulse-1.sym

2) Import gschem in gspiceui
This seemed successful to me -- No warnings or error messages in the log 
window. The named nets appear in the list of nodes, the syms in the list 
of components. 

3) When I try to create a  simulation, I get the error message:
	No source component has been selected.
However, the voltage source component V1 that corresponds to vpulse-1 had 
been selected in the components list.

Did I miss something obvious? Is vpulse-1.sym not a proper source 
component? Any hints?
  
---<(kaimartin)>---

PS: The file lowpass.sch:
========================================
v 20070902 1
C 44300 46700 1 0 0 resistor-1.sym
{
T 44600 47100 5 10 0 0 0 0 1
device=RESISTOR
T 44500 47200 5 10 1 1 0 0 1
refdes=R1
T 44500 47000 5 10 1 1 0 0 1
value=1M
}
C 45600 45600 1 90 0 capacitor-1.sym
{
T 44900 45800 5 10 0 0 90 0 1
device=CAPACITOR
T 45700 46100 5 10 1 1 0 0 1
refdes=C1
T 44700 45800 5 10 0 0 90 0 1
symversion=0.1
T 45700 45900 5 10 1 1 0 0 1
value=100n
}
N 43800 46800 44300 46800 4
{
T 43900 46900 5 10 1 1 0 1 1
netname=in
}
N 45200 46800 46100 46800 4
{
T 45600 46900 5 10 1 1 0 1 1
netname=out
}
N 45400 46800 45400 46500 4
C 45300 45100 1 0 0 gnd-1.sym
N 45400 45400 45400 45600 4
C 43700 45100 1 0 0 gnd-1.sym
N 43800 45400 43800 45500 4
N 43800 46800 43800 46700 4
C 43500 45500 1 0 0 vpulse-1.sym
{
T 44200 46150 5 10 1 1 0 0 1
refdes=V1
T 44200 46350 5 10 0 0 0 0 1
device=vpulse
T 44200 46550 5 10 0 0 0 0 1
footprint=none
T 42900 44750 5 10 1 1 0 0 1
value=pulse 0 1 1000n 1000n 10000n 100u 200u
}
T 42900 44500 9 10 1 0 0 0 1
syntax: pulse v1 v2 td tr tf pw per
========================================
-- 
Kai-Martin Knaak
http://lilalaser.de/blog



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user