<?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 Help Adding a Spice Model - Worked Example for a TL431 in Fusion Electronics Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12365783#M4657</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if you could help me with a process to add a spice model to a library component for an TL431 (Shunt regulator)?&lt;/P&gt;&lt;P&gt;I have tried to do this several times and failed to get a working simulation yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to create a part , but I a bit lost when it comes to successfully adding the spice model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From looking at several blogs and tutorials for simple parts like diodes, it looks fairly straight forward.... but when it comes to my part I am a bit lost.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the Spice type (when I add the load Spice model) do I chose 'X: Subcircuit' as the model type (as nothing else in the list matches the description of the device)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michael_Dalb_0-1699536901117.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1290758iDAAB2A01F90A09D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Michael_Dalb_0-1699536901117.png" alt="Michael_Dalb_0-1699536901117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have downloaded the Ti spice model and mapped it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michael_Dalb_2-1699537672092.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1290767iD6E99642813C7006/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Michael_Dalb_2-1699537672092.png" alt="Michael_Dalb_2-1699537672092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All seems to be okay. but when I run the simulator I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michael_Dalb_1-1699537491953.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1290766iF4CB7EFE4EC5134D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Michael_Dalb_1-1699537491953.png" alt="Michael_Dalb_1-1699537491953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Model is pretty short:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;*****************************************************************************&lt;BR /&gt;* TL431 MACROMODEL ***************3-26-92************************************&lt;BR /&gt;* REV N/A ****************************************************************DBB&lt;BR /&gt;*****************************************************************************&lt;BR /&gt;* REFERENCE&lt;BR /&gt;* | ANODE&lt;BR /&gt;* | | CATHODE&lt;BR /&gt;* | | |&lt;BR /&gt;.SUBCKT TL431 1 2 3&lt;BR /&gt;V1 6 7 DC 1.4V&lt;BR /&gt;I1 2 4 1E-3&lt;BR /&gt;R1 1 2 1.2E6&lt;BR /&gt;R2 4 2 RMOD 2.495E3&lt;BR /&gt;R3 5 7 .2&lt;BR /&gt;D1 3 6 DMOD1&lt;BR /&gt;D2 2 3 DMOD1&lt;BR /&gt;D3 2 7 DMOD2&lt;BR /&gt;E1 5 2 POLY(2) (4,2) (1,2) 0 710 -710&lt;BR /&gt;.MODEL RMOD RES (TC1=1.4E-5 TC2=-1E-6)&lt;BR /&gt;.MODEL DMOD1 D (RS=.3)&lt;BR /&gt;.MODEL DMOD2 D (RS=1E-6)&lt;BR /&gt;.ENDS&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any help that you can offer will be appreciated?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kind regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Michael&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 13:50:56 GMT</pubDate>
    <dc:creator>Michael_Dalby6FK4J</dc:creator>
    <dc:date>2023-11-09T13:50:56Z</dc:date>
    <item>
      <title>Help Adding a Spice Model - Worked Example for a TL431</title>
      <link>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12365783#M4657</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if you could help me with a process to add a spice model to a library component for an TL431 (Shunt regulator)?&lt;/P&gt;&lt;P&gt;I have tried to do this several times and failed to get a working simulation yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to create a part , but I a bit lost when it comes to successfully adding the spice model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From looking at several blogs and tutorials for simple parts like diodes, it looks fairly straight forward.... but when it comes to my part I am a bit lost.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the Spice type (when I add the load Spice model) do I chose 'X: Subcircuit' as the model type (as nothing else in the list matches the description of the device)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michael_Dalb_0-1699536901117.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1290758iDAAB2A01F90A09D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Michael_Dalb_0-1699536901117.png" alt="Michael_Dalb_0-1699536901117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have downloaded the Ti spice model and mapped it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michael_Dalb_2-1699537672092.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1290767iD6E99642813C7006/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Michael_Dalb_2-1699537672092.png" alt="Michael_Dalb_2-1699537672092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All seems to be okay. but when I run the simulator I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michael_Dalb_1-1699537491953.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1290766iF4CB7EFE4EC5134D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Michael_Dalb_1-1699537491953.png" alt="Michael_Dalb_1-1699537491953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Model is pretty short:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;*****************************************************************************&lt;BR /&gt;* TL431 MACROMODEL ***************3-26-92************************************&lt;BR /&gt;* REV N/A ****************************************************************DBB&lt;BR /&gt;*****************************************************************************&lt;BR /&gt;* REFERENCE&lt;BR /&gt;* | ANODE&lt;BR /&gt;* | | CATHODE&lt;BR /&gt;* | | |&lt;BR /&gt;.SUBCKT TL431 1 2 3&lt;BR /&gt;V1 6 7 DC 1.4V&lt;BR /&gt;I1 2 4 1E-3&lt;BR /&gt;R1 1 2 1.2E6&lt;BR /&gt;R2 4 2 RMOD 2.495E3&lt;BR /&gt;R3 5 7 .2&lt;BR /&gt;D1 3 6 DMOD1&lt;BR /&gt;D2 2 3 DMOD1&lt;BR /&gt;D3 2 7 DMOD2&lt;BR /&gt;E1 5 2 POLY(2) (4,2) (1,2) 0 710 -710&lt;BR /&gt;.MODEL RMOD RES (TC1=1.4E-5 TC2=-1E-6)&lt;BR /&gt;.MODEL DMOD1 D (RS=.3)&lt;BR /&gt;.MODEL DMOD2 D (RS=1E-6)&lt;BR /&gt;.ENDS&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any help that you can offer will be appreciated?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kind regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Michael&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 13:50:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12365783#M4657</guid>
      <dc:creator>Michael_Dalby6FK4J</dc:creator>
      <dc:date>2023-11-09T13:50:56Z</dc:date>
    </item>
    <item>
      <title>Betreff: Help Adding a Spice Model - Worked Example for a TL431</title>
      <link>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12366087#M4658</link>
      <description>&lt;P&gt;Probably you are still using the old ngspice-26, which does not understand several PSPICE constructs. Newer ngspices do automatically understand, current version is ngspice-41.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you might help yourself by editing the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Comment out the following 2 lines by a leading asterisk:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;*R2 4 2 RMOD 2.495E3&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;*.MODEL RMOD RES (TC1=1.4E-5 TC2=-1E-6)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the line &lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;R2 4 2 2.495E3 TC1=1.4E-5 TC2=-1E-6&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will give the same results as the original lines.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 15:31:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12366087#M4658</guid>
      <dc:creator>holger.vogt</dc:creator>
      <dc:date>2023-11-09T15:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help Adding a Spice Model - Worked Example for a TL431</title>
      <link>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12366209#M4659</link>
      <description>&lt;P&gt;Hi Holger,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for the response. I have a very new installation of Fusion 360 (days old) .... how can I tell if it is using the old ngspice 26 or the new -41? ..... If I am using the old one then how do I go about updating it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 16:04:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12366209#M4659</guid>
      <dc:creator>Michael_Dalby6FK4J</dc:creator>
      <dc:date>2023-11-09T16:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help Adding a Spice Model - Worked Example for a TL431</title>
      <link>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12366357#M4660</link>
      <description>&lt;P&gt;If you are on MS Windows:&lt;/P&gt;&lt;P&gt;Goto&lt;/P&gt;&lt;P&gt;C:\users\&amp;lt;your name&amp;gt;\Appdata\&lt;/P&gt;&lt;P&gt;Search for ngspice.exe&lt;/P&gt;&lt;P&gt;When you have found it, open its directory. Double click onto ngspice.exe. And you will see the version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For an update, you may have a look at &lt;A href="https://ngspice.sourceforge.io/download.html#eagle" target="_blank"&gt;https://ngspice.sourceforge.io/download.html#eagle&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To state it clearly: This update is not endorsed by Autodesk, your are alone responsible for any issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are not on MS Windows, I do not have any concise solution available.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 16:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-electronics-forum/help-adding-a-spice-model-worked-example-for-a-tl431/m-p/12366357#M4660</guid>
      <dc:creator>holger.vogt</dc:creator>
      <dc:date>2023-11-09T16:55:15Z</dc:date>
    </item>
  </channel>
</rss>

