ngSpice error when modeling transistors

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I don't use ngSpice much but I wanted to model a small circuit. It works fine(Operating Point and DC Analysis) when I use voltage sources and passive components, but as soon as I drop in a transistor I get an error. I mapped the NPN transistor(e.g. a 2N2369A) using the QNPN.mdl found in the Spice/Examples folder. When I do, I get a PPsyntax error and it doesn't give me a line in the netlist where the error occurred. I have several questions about how ngSpice handles these models:
1. Is the Spice/Examples folder the right place to obtain the model?
2. I copied the QNPN.mdl to my local folder(in Projects) before using it. If I map to it and don't rename the model locally it will overwrite the copy of QNPN. Then what happens if I want to add another NPN transistor of a different type?
3. If I do rename it to something like 2N2369A.mdl then the simulation cannot find it.
4. It wouldn't seem that a single QNPN.mdl could cover all different parameters of a variety of transistors(Small Signal, Power, RF, etc.).
I found lots online concerning ngSpice but nothing concerning it's implementation in Eagle. The Eagle manual only has a few examples with no explanation of errors and their solutions. It should be improved to describe the implementation in Autodesk Eagle.
I'm sure my problem is just due to my lack of familiarity with ngSpice in Eagle and I'd appreciate any hints.