<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ngSpice error when modeling transistors in EAGLE Forum</title>
    <link>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10662080#M4450</link>
    <description>&lt;P&gt;Unfortunately ngspice provided with EAGLE 9.6.2 is fairly old (ngspice-26 from 2014). If you manage to upgrade ngspice (see &lt;A href="http://ngspice.sourceforge.net/download.html#eagle" target="_blank"&gt;http://ngspice.sourceforge.net/download.html#eagle&lt;/A&gt; ), ngspice-35 will acknowledge - and + in net names and also provide better error messages.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Oct 2021 11:08:24 GMT</pubDate>
    <dc:creator>holger.vogt</dc:creator>
    <dc:date>2021-10-02T11:08:24Z</dc:date>
    <item>
      <title>ngSpice error when modeling transistors</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10656703#M4445</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;1. Is the Spice/Examples folder the right place to obtain the model?&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;3. If I do rename it to something like 2N2369A.mdl then the simulation cannot find it.&lt;/P&gt;&lt;P&gt;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.).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure my problem is just due to my lack of familiarity with ngSpice in Eagle and I'd appreciate any hints.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 02:34:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10656703#M4445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-30T02:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: ngSpice error when modeling transistors</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10659369#M4446</link>
      <description>&lt;P&gt;I also notice a line in the Eagle 9.6.2 manual that refers to an ngSpice manual but there is no such manual in the documentation directory.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 23:24:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10659369#M4446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-30T23:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: ngSpice error when modeling transistors</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10660040#M4447</link>
      <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the ngspice manual is in the EAGLE installation folder, e.g. c:\EAGLE-9.6.2\ngspice.&amp;nbsp; It's the ngspice-26-manual.pdf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 08:43:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10660040#M4447</guid>
      <dc:creator>RichardHammerl</dc:creator>
      <dc:date>2021-10-01T08:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: ngSpice error when modeling transistors</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10660057#M4448</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;1. Is the Spice/Examples folder the right place to obtain the model?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is the default folder for all models coming with EAGLE. You can map to them, if it suits your purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Self-made models should go into this user folder. This okay. Use different names for your models.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;3. If I do rename it to something like 2N2369A.mdl then the simulation cannot find it.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It should be available for simulation. Did you correctly assign the the model?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;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.).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can have a model for each variant.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 08:55:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10660057#M4448</guid>
      <dc:creator>RichardHammerl</dc:creator>
      <dc:date>2021-10-01T08:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: ngSpice error when modeling transistors</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10661643#M4449</link>
      <description>&lt;P&gt;But how do you tailor the basic model to have the correct parameters for a particular variant? KICAD provides a detailed step-by-step process of obtaining the manufacturer's data for a specific device in the form of a .lib file that is then added to the basic ngSpice model. &lt;U&gt;Eagle 9.6.2 says nothing about that nor does it store any of these as far as I can tell&lt;/U&gt;. Therefore, I have no confidence in attempting to run an AC Sweep using these models.&lt;/P&gt;&lt;P&gt;Anyway, I solved my syntax errors. I was actually trying to avoid such errors by keeping net names simple and not trying to use the exclamation point "!" to form a "barred" active low net signal. So I used names such as pulse- or OE+ and this is what ngSpice was objecting to. It's irritating that ngSpice would not show me the line number in the netlist file where it found the errors. It would have saved a lot of time.&lt;/P&gt;&lt;P&gt;Also, it was imperative that the models were obtained from the library ngspice-simulation.lbr in the form of BJT_NPN and not the QNPN.mdl found in the folder SPICE MODELS\Examples.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 23:46:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10661643#M4449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-01T23:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: ngSpice error when modeling transistors</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10662080#M4450</link>
      <description>&lt;P&gt;Unfortunately ngspice provided with EAGLE 9.6.2 is fairly old (ngspice-26 from 2014). If you manage to upgrade ngspice (see &lt;A href="http://ngspice.sourceforge.net/download.html#eagle" target="_blank"&gt;http://ngspice.sourceforge.net/download.html#eagle&lt;/A&gt; ), ngspice-35 will acknowledge - and + in net names and also provide better error messages.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 11:08:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10662080#M4450</guid>
      <dc:creator>holger.vogt</dc:creator>
      <dc:date>2021-10-02T11:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: ngSpice error when modeling transistors</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10666513#M4451</link>
      <description>&lt;P&gt;Thanks very much for the update link.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 02:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/ngspice-error-when-modeling-transistors/m-p/10666513#M4451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-05T02:10:46Z</dc:date>
    </item>
  </channel>
</rss>

