*.lib and *.olb into spice, how?

Electronics Computer Programming Q&A
Post Reply
Volter
Posts: 105
Joined: Mon Jan 12, 2009 7:36 am
Contact:

*.lib and *.olb into spice, how?

Post by Volter »

I downloaded some Pspice files with these extensions: *.lib and *.olb!? How do I get them imported into LTspice?
Would someone have any idea what to do with them?
Thanks.
:sad:
Bigglez
Posts: 1282
Joined: Mon Oct 15, 2007 7:39 pm
Contact:

Re: *.lib and *.olb into spice, how?

Post by Bigglez »

Volter wrote:I downloaded some Pspice files with these extensions: *.lib and *.olb!? How do I get them imported into LTspice?
Would someone have any idea what to do with them?
A file ending in "lib" is a library. It contains details of a
device, and must be installed to your LTspice directory.
See Nuts and Volts See the December 2007 and January
2008 issue for an on-going series about SPICE. The
January issue has explicit instructions to install libraries.

I'm unfamiliar with *.olb files.
Bigglez
Posts: 1282
Joined: Mon Oct 15, 2007 7:39 pm
Contact:

Re: *.lib and *.olb into spice, how?

Post by Bigglez »

Bigglez wrote:I'm unfamiliar with *.olb files.
Okay, try this:

Image
Volter
Posts: 105
Joined: Mon Jan 12, 2009 7:36 am
Contact:

Post by Volter »

OK, I created the component but it seems it does not finds its *.lib file even I do specify it. Do I need to edit any files in the “\cmpâ€
Bigglez
Posts: 1282
Joined: Mon Oct 15, 2007 7:39 pm
Contact:

Post by Bigglez »

Volter wrote:OK, I created the component but it seems it does not finds its *.lib file even I do specify it.
Yep, that's a common problem in LTspice work.
Once you have the process done a few times
you'll get a feel for what to tweak.

Take a look at the January 2009 issue of Nuts and
Volts, there is a guide for adding libs to LTspice
installations.

Also, make sure you close and reopen LTspice after
any file manipulations. I wasted a ton of time
learning that trick!
User avatar
kheston
Posts: 354
Joined: Wed Dec 03, 2003 1:01 am
Location: CA
Contact:

Re: *.lib and *.olb into spice, how?

Post by kheston »

Has anyone found a good guide for importing pspice models into LTSpice? I couldn't a TIP3055 and a 1N5340 in the pre-installed components, so I figured I'd try my hand at finding/fixing my own.

I'm having trouble following Biggelz' guide. It seems to say that I just need to copy (or create) a similar assembly and point to the spice model *.lib file that I should place in LTSpiceIVlib\sub\private. However, I'm unsure whether the pin order is right (and just exactly what to look at to figure it out, for that matter).

Here are my *.asy and (borrowed) *.lib:

Code: Select all

Version 4
SymbolType CELL
LINE Normal 44 76 36 84
LINE Normal 64 96 44 76
LINE Normal 64 96 36 84
LINE Normal 40 80 16 64
LINE Normal 16 32 64 0
LINE Normal 12 48 0 48
RECTANGLE Normal 16 72 12 24
WINDOW 0 56 32 Left 0
WINDOW 3 56 68 Left 0
SYMATTR Value TIP3055
SYMATTR Prefix QN
SYMATTR Description Bipolar NPN transistor
SYMATTR SpiceModel private\TIP3055.lib
PIN 64 0 NONE 0
PINATTR PinName C
PINATTR SpiceOrder 1
PIN 0 48 NONE 0
PINATTR PinName B
PINATTR SpiceOrder 2
PIN 64 96 NONE 0
PINATTR PinName E
PINATTR SpiceOrder 3

Code: Select all

**************************************
*      Model Generated by MODPEX     *
*Copyright(c) Symmetry Design Systems*
*         All Rights Reserved        *
*    UNPUBLISHED LICENSED SOFTWARE   *
*   Contains Proprietary Information *
*      Which is The Property of      *
*     SYMMETRY OR ITS LICENSORS      *
*    Modeling services provided by   *
* Interface Technologies www.i-t.com *
**************************************
.MODEL Qtip3055 npn
+IS=9.20807e-13 BF=147.096 NF=1.04318 VAF=378.469
+IKF=10 ISE=6.09693e-09 NE=2.4688 BR=14.7096
+NR=1.5 VAR=149.08 IKR=3.14824 ISC=1e-16
+NC=1 RB=14.1904 IRB=0.1 RBM=0.1
+RE=0.036413 RC=0.182065 XTB=0.1 XTI=3.71709
+EG=1.05 CJE=7.39634e-08 VJE=0.531216 MJE=0.573868
+TF=1e-08 XTF=1.35738 VTF=0.997148 ITF=0.99974
+CJC=4.44315e-10 VJC=0.400241 MJC=0.410047 XCJC=0.803124
+FC=0.653134 CJS=0 VJS=0.75 MJS=0.5
+TR=1e-07 PTF=0 KF=0 AF=1
* Model generated on Feb  8, 2004
* Model format: PSpice
Any pointers?
Kurt - SF Bay
User avatar
kheston
Posts: 354
Joined: Wed Dec 03, 2003 1:01 am
Location: CA
Contact:

Re: *.lib and *.olb into spice, how?

Post by kheston »

Posted this before I realized it was in the programming forum. Moving to General forum:

http://forum.servomagazine.com/viewtopi ... =1&t=15171

Sorry for the duplicate post. I'd delete it here, but someone disabled that capability.
Kurt - SF Bay
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests