Electronics-Related.com
Forums

Two questions about LTSpice

Started by Marco Trapanese October 17, 2012
On Wed, 17 Oct 2012 11:57:34 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:

>On Wed, 17 Oct 2012 20:26:17 +0200, "Helmut Sennewald" ><helmutsennewald@t-online.de> wrote: > >> >>"Jim Thompson" <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> =
schrieb=20
>>im Newsbeitrag news:2urt78tej33lhdhb4ho3dn59q79m8n8a53@4ax.com... >>> On Wed, 17 Oct 2012 19:24:35 +0200, "Helmut Sennewald" >>> <helmutsennewald@t-online.de> wrote: >>> >>>> >>>>"Jim Thompson" <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> =
schrieb
>>>>im Newsbeitrag news:2eit78tt12n6odjq64dctu2a8qe9h7ft28@4ax.com... >>>>> On Wed, 17 Oct 2012 09:55:34 +0200, o pere o <me@somewhere.net> =
wrote:
>>>>> >>>>>>On 10/17/2012 09:13 AM, Marco Trapanese wrote: >>>>>>> Il 17/10/2012 08:46, Vlad ha scritto: >>>>>>> >>>>>>>> For the TIP122, I did a search on Google and I got it within the=
=20
>>>>>>>> first >>>>>>>> hit. >>>>>>> >>>>>>> >>>>>>> I also got it at the first hit, if you're referring to this page: >>>>>>> >>>>>>> http://www.onsemi.com/pub_link/Collateral/TIP122.SP2 >>>>>>> >>>>>>> but the code inside is quite different than the *.asy files =
available
>>>>>>> into the lib folder of LTSpice. Here my question. >>>>>>> >>>>>>> In fact I've already tried to put the file there calling it=20 >>>>>>> tip122.asy. >>>>>>> But when I select it from LTSpice I got 'Unknown symbol syntax:=20 >>>>>>> ".SUBCKT >>>>>>> Xtip122 1 2 3" ' >>>>>>> >>>>>>> >>>>>>>> As for the worst-case setup, try this link, it has a good=20 >>>>>>>> explanation: >>>>>>>> =
k6jca.blogspot.com/2012/07/monte-carlo-and-worst-case-circuit.html
>>>>>>> >>>>>>> >>>>>>> Thanks a lot for the link. I'll give it a try. >>>>>>> >>>>>>> Marco >>>>>>> >>>>>>> >>>>>> >>>>>>The link Vlad provided is a Spice subcircuit file. Perhaps this >>>>>>http://www.simonbramble.co.uk/lt_spice/ltspice_lt_spice_tutorial_4.=
htm
>>>>>>may help you inserting it into LTSpice. >>>>>> >>>>>>Pere >>>>> >>>>> Since I work primarily at the device level I literally have =
hundreds
>>>>> of libraries. Is there a way in LTspice to call a library by its >>>>> PATH, rather than requiring it to be in the same folder as the >>>>> schematic? >>>>> >>>>> ...Jim Thompson >>>>> --=20 >>>>> | James E.Thompson, CTO | mens | >>>>> | Analog Innovations, Inc. | et | >>>>> | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | >>>>> | Phoenix, Arizona 85048 Skype: Contacts Only | | >>>>> | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | >>>>> | E-mail Icon at http://www.analog-innovations.com | 1962 | >>>>> >>>>> I love to cook with wine. Sometimes I even put it in the food. >>>> >>>>Hello Jim, >>>> >>>>You can specify a full path. >>>> >>>>Example: >>>> >>>>.lib C:\mylib1\mosfet\abc.lib >>>> >>>>Best regards, >>>>Helmut >>>> >>> >>> Is that put in via the so-called "Spice directive"? >>> >>> ...Jim Thompson >> >>Hello Jim, >> >>A SPICE-directive is simply a SPICE-line. >>You can either use a SPICE-directive in the schematic or you specify =
the=20
>>full path in the symbol. >> >>I personally never use a full path name, because I mostly work on =
chematics=20
>>for other users. It's then much more convenient to have all files the =
folder=20
>>of the schemtaic. >> >>Best regards, >>Helmut=20 >> > >Yep. Understood. > >I work with so many different clients and device libraries that I >extensively use a utility "Clip Path"... > > http://download.cnet.com/ClipPath/3000-2094_4-10050927.html > >which helps me manage hierarchical schematics (sub-schematics are >often in their own folder, due to pre-testing before incorporation), >and device libraries (I have 93 different foundries/manufacturers, and >49,726 different folders totaling 5.2GB :-) > =09 > ...Jim Thompson
Poxy hell. I might buy that off you if i could. For obvious reasons it is not (reasonably) available for sale by you. BTW is PSpice still available for sale? Is the price not too unreasonable? ?-)
On Wed, 17 Oct 2012 16:30:07 +0200, Marco Trapanese
<marcotrapaneseNOSPAM@gmail.com> wrote:

>Il 17/10/2012 08:46, Vlad ha scritto: > >> As for the worst-case setup, try this link, it has a good explanation: > > k6jca.blogspot.com/2012/07/monte-carlo-and-worst-case-circuit.html > > >It does the dirty job but in a weird way. I'm going to improve it. >Do you know a way to obtain the tolerance value already put in the=20 >related field (e.g. a resistor) ? > >Marco
You might look at sensitivity analysis. A .sens card with all the components you want analyzed listed. Then you could easily pick the ones you need to sweep. Myself, i can do most of that in my head without any "heavy lifting" analytically. ?-)
On Fri, 19 Oct 2012 00:00:13 -0700, josephkk
<joseph_barrett@sbcglobal.net> wrote:

>On Wed, 17 Oct 2012 11:57:34 -0700, Jim Thompson ><To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote: > >>On Wed, 17 Oct 2012 20:26:17 +0200, "Helmut Sennewald" >><helmutsennewald@t-online.de> wrote: >> >>> >>>"Jim Thompson" <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> schrieb >>>im Newsbeitrag news:2urt78tej33lhdhb4ho3dn59q79m8n8a53@4ax.com... >>>> On Wed, 17 Oct 2012 19:24:35 +0200, "Helmut Sennewald" >>>> <helmutsennewald@t-online.de> wrote: >>>> >>>>> >>>>>"Jim Thompson" <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> schrieb >>>>>im Newsbeitrag news:2eit78tt12n6odjq64dctu2a8qe9h7ft28@4ax.com... >>>>>> On Wed, 17 Oct 2012 09:55:34 +0200, o pere o <me@somewhere.net> wrote: >>>>>> >>>>>>>On 10/17/2012 09:13 AM, Marco Trapanese wrote: >>>>>>>> Il 17/10/2012 08:46, Vlad ha scritto: >>>>>>>> >>>>>>>>> For the TIP122, I did a search on Google and I got it within the >>>>>>>>> first >>>>>>>>> hit. >>>>>>>> >>>>>>>> >>>>>>>> I also got it at the first hit, if you're referring to this page: >>>>>>>> >>>>>>>> http://www.onsemi.com/pub_link/Collateral/TIP122.SP2 >>>>>>>> >>>>>>>> but the code inside is quite different than the *.asy files available >>>>>>>> into the lib folder of LTSpice. Here my question. >>>>>>>> >>>>>>>> In fact I've already tried to put the file there calling it >>>>>>>> tip122.asy. >>>>>>>> But when I select it from LTSpice I got 'Unknown symbol syntax: >>>>>>>> ".SUBCKT >>>>>>>> Xtip122 1 2 3" ' >>>>>>>> >>>>>>>> >>>>>>>>> As for the worst-case setup, try this link, it has a good >>>>>>>>> explanation: >>>>>>>>> k6jca.blogspot.com/2012/07/monte-carlo-and-worst-case-circuit.html >>>>>>>> >>>>>>>> >>>>>>>> Thanks a lot for the link. I'll give it a try. >>>>>>>> >>>>>>>> Marco >>>>>>>> >>>>>>>> >>>>>>> >>>>>>>The link Vlad provided is a Spice subcircuit file. Perhaps this >>>>>>>http://www.simonbramble.co.uk/lt_spice/ltspice_lt_spice_tutorial_4.htm >>>>>>>may help you inserting it into LTSpice. >>>>>>> >>>>>>>Pere >>>>>> >>>>>> Since I work primarily at the device level I literally have hundreds >>>>>> of libraries. Is there a way in LTspice to call a library by its >>>>>> PATH, rather than requiring it to be in the same folder as the >>>>>> schematic? >>>>>> >>>>>> ...Jim Thompson >>>>>> -- >>>>>> | James E.Thompson, CTO | mens | >>>>>> | Analog Innovations, Inc. | et | >>>>>> | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | >>>>>> | Phoenix, Arizona 85048 Skype: Contacts Only | | >>>>>> | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | >>>>>> | E-mail Icon at http://www.analog-innovations.com | 1962 | >>>>>> >>>>>> I love to cook with wine. Sometimes I even put it in the food. >>>>> >>>>>Hello Jim, >>>>> >>>>>You can specify a full path. >>>>> >>>>>Example: >>>>> >>>>>.lib C:\mylib1\mosfet\abc.lib >>>>> >>>>>Best regards, >>>>>Helmut >>>>> >>>> >>>> Is that put in via the so-called "Spice directive"? >>>> >>>> ...Jim Thompson >>> >>>Hello Jim, >>> >>>A SPICE-directive is simply a SPICE-line. >>>You can either use a SPICE-directive in the schematic or you specify the >>>full path in the symbol. >>> >>>I personally never use a full path name, because I mostly work on chematics >>>for other users. It's then much more convenient to have all files the folder >>>of the schemtaic. >>> >>>Best regards, >>>Helmut >>> >> >>Yep. Understood. >> >>I work with so many different clients and device libraries that I >>extensively use a utility "Clip Path"... >> >> http://download.cnet.com/ClipPath/3000-2094_4-10050927.html >> >>which helps me manage hierarchical schematics (sub-schematics are >>often in their own folder, due to pre-testing before incorporation), >>and device libraries (I have 93 different foundries/manufacturers, and >>49,726 different folders totaling 5.2GB :-) >> >> ...Jim Thompson > >Poxy hell. I might buy that off you if i could. For obvious reasons it >is not (reasonably) available for sale by you.
No, I can't sell or disseminate. Though any qualified engineer can request an account from virtually all of those foundries... just sign an NDA.
> > >BTW is PSpice still available for sale? Is the price not too >unreasonable? > >?-)
PSpice is for sale, but you're pretty much forced into OrCAD Capture... In the patent infringement case, I am the designer, so the lawyers hire "experts" (from universities (UTex Arlington and UColorado) to verify my work. Since I did this design with PSpice Simulator and schematic entry using PSpice Schematics, the "experts" had to buy same. Turns out that PSpice v16.1+ has Schematics neutered, you can't print, you have to import into Capture to print. After my raising holy hell, Cadence deigned to sell them v15.7, which still prints :-) Cadence is a prime example of what is wrong in the US. Can't compete? BUY the competition and destroy them. Sell a worthless POS called Virtuoso, with the GUI from hell, probably for $100K a seat, and kill a $8K product that can do the same thing, with the world's most pleasant schematic entry. ...Jim Thompson -- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
On Wed, 17 Oct 2012 09:13:13 +0200, Marco Trapanese wrote:

> I also got it at the first hit, if you're referring to this page: > > http://www.onsemi.com/pub_link/Collateral/TIP122.SP2 > > but the code inside is quite different than the *.asy files available into > the lib folder of LTSpice. Here my question. > > In fact I've already tried to put the file there calling it tip122.asy. > But when I select it from LTSpice I got 'Unknown symbol syntax: ".SUBCKT > Xtip122 1 2 3" '
The file referred is a *subcircuit* file. .asy files are *symbols*, ie. the shape that shows on a schematic. Put TIP122.sp2 in /lib/sub, and add the LTspice directive ".lib TIP122.sp2" to your LTspice schematic. Use the standard NPN symbol, but don't assign a device model. Instead, control-right-click on it, which will open a dialog box where you can make it into an "X" subcircuit device, and set the appropriate parameters. A good read of the manual will make things clear. If you use a lot of subcircuit devices, it's a good idea to make a dedicated "subcircuit npn" symbol. -- "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." (Richard Feynman)