[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: cant connect model to transistor.
Change the value attribute to 2n2222 and read up on spice syntax. Your
model file (the model of the 2n2222) needs to be included in the
netlist which in your case it isn't.
Also consider using my netlister at http://spnet.code-fusion.net/
(shameless plug) it warns about things like this and the documentation
helps your avoid things like this. In summary every component needs a
value attribute and models need to be included in your netlist.
On Wed, Jul 15, 2009 at 6:35 AM, Piter_<x.piter@xxxxxxxxx> wrote:
>
> Hi all.
> I'm trying to make a simple curve tracer using gschem and ngspice.
> I've made a circuit
> basic2n2222.sch:
> v 20080127 1
> C 40000 40000 0 0 0 title-B.sym
> C 44000 46500 1 270 0 voltage-3.sym
> {
> T 44700 46300 5 8 0 0 270 0 1
> device=VOLTAGE_SOURCE
> T 44500 46200 5 10 1 1 270 0 1
> refdes=V2
> T 44000 46500 5 10 1 1 180 0 1
> value=Vbe
> }
> C 49900 47500 1 270 0 voltage-3.sym
> {
> T 50600 47300 5 8 0 0 270 0 1
> device=VOLTAGE_SOURCE
> T 50400 47200 5 10 1 1 270 0 1
> refdes=V1
> T 49900 47500 5 10 1 1 180 0 1
> value=Vce
> }
> N 44200 46500 47900 46500 4
> {
> T 45500 46500 5 10 1 1 0 0 1
> netname=n1
> }
> N 48500 45600 48500 46000 4
> N 48500 47000 48500 47800 4
> N 48500 47800 50100 47800 4
> {
> T 48500 47800 5 10 1 1 0 0 1
> netname=n2
> }
> N 50100 47800 50100 47500 4
> N 44200 45600 50100 45600 4
> {
> T 45500 45600 5 10 1 1 0 0 1
> netname=0
> }
> N 50100 45600 50100 46600 4
> C 47900 46000 1 0 0 npn-3.sym
> {
> T 48800 46500 5 10 0 0 0 0 1
> device=NPN_TRANSISTOR
> T 48800 46500 5 10 1 1 0 0 1
> refdes=Q1
> T 47900 46000 5 10 1 1 0 0 1
> model-name=2N2222
> }
> C 40900 49700 1 0 0 spice-model-1.sym
> {
> T 41000 50400 5 10 0 1 0 0 1
> device=model
> T 41000 50300 5 10 1 1 0 0 1
> refdes=A1
> T 42200 50000 5 10 1 1 0 0 1
> model-name=2N2222
> T 41400 49800 5 10 1 1 0 0 1
> file=/home/petro/GEDA/PROJECTS/2N2222_BASIC/models/2N2222.mod
> }
> now if i run:
> gnetlist -g spice -o [1]basic2n2222.net basic2n2222.sch
> I get this net-file:
> * Spice netlister for gnetlist
> V2 n1 0 Vbe
> V1 n2 0 Vce
> Q1 n2 n1 0 <No valid value attribute found>
> A1 <No valid value attribute found>
> .END
> What have i done wrong?
> Thanks in advance.
> Petro
> P.S.
> this is 2N2222.mod file:
> .model 2N2222 NPN(IS=1E-14 VAF=100
> + BF=200 IKF=0.3 XTB=1.5 BR=3
> + CJC=8E-12 CJE=25E-12 TR=100E-9 TF=400E-12
> + ITF=1 VTF=2 XTF=3 RB=10 RC=3 RE=1 Vceo=30 Icrating=800m
> mfg=Philips)
>
> References
>
> 1. http://basic2n2222.net/
>
>
>
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>
>
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user