LTSpice LM741 Problem

ericgibbs

Joined Jan 29, 2010
21,439
hi,
I would suggest that you use Start/Search/Files and Folders from the windows lower menu bar, for LM741.* , search the LTSpice main folder for all occurrences of LM741.
Make sure that you have the LM741 extensions in the required folders.
E
 

Thread Starter

sdas86

Joined Mar 18, 2015
26
Hi,
My symbol is placed at D:\LTC\LTspiceIV\lib\sym\BEE215
The folder name is BEE215.

I have 3 items in this folder: LM741.asy, LM741.MOD and LM741.lib

May I know how to save the .lib properly? Do I need to open the .mod using Notepad and then save as .lib?
 

Alec_t

Joined Sep 17, 2013
15,118
Leave the .asy file as is, but move the .mod and .lib files to the ...\LTspiceIV\lib\sub folder. Don't forget to use the ".include LM741.mod" or ".include LM741.lib" directive on your schematic.
 

crutschow

Joined Mar 14, 2008
38,503
Did you close and restart LTspice?

Edit: If you put the .asy file in the lib/sym/Opamps directory and the .lib file in the lib/sub directory then the 741 opamp should appear in the Opamps library in LTspice which can be directly used without requiring any ".include" command, the same as any other opamp.
 
Last edited:

Thread Starter

sdas86

Joined Mar 18, 2015
26
Leave the .asy file as is, but move the .mod and .lib files to the ...\LTspiceIV\lib\sub folder. Don't forget to use the ".include LM741.mod" or ".include LM741.lib" directive on your schematic.
Did you close and restart LTspice?

Edit: If you put the .asy file in the lib/sym/Opamps directory and the .lib file in the lib/sub directory then the 741 opamp should appear in the Opamps library in LTspice which can be directly used without requiring any ".include" command, the same as any other opamp.
Hi,
I do not understand. The .asy file is a symbol file. This .asy file I copied from the opamps2.
I open a folder called BEE215. I put this LM741.asy, LM741.lib and LM741.mod into this BEE215 folder. Am I doing this wrongly?

But after it is added, I went into LTSpice and press F2 and add. but nothing appear.

Thanks
 

Thread Starter

sdas86

Joined Mar 18, 2015
26
Hi All,
Now since I have LM741.lib and LM741.mod.
Can I just copy the Opamps2.asy?
I open Opamps2.asy in LTSpice and I edit the Attributes (Edit > Attributes > Edit Attributes).
Spice Model: \sym\BEE215\LM741.mod < Do I need to put in full path link like D:\LTSpice.......\LM741.mod ?
Modal File: \sym\BEE215\LM741.lib < Do I need to put in full path link like D:\LTSpice.......\LM741.lib ?

And then I save this as Opamps-LM741.asy. Can I do it this method?
 

crutschow

Joined Mar 14, 2008
38,503
Hi,
I do not understand. The .asy file is a symbol file. This .asy file I copied from the opamps2.
I open a folder called BEE215. I put this LM741.asy, LM741.lib and LM741.mod into this BEE215 folder. Am I doing this wrongly?

But after it is added, I went into LTSpice and press F2 and add. but nothing appear.
Your method isn't necessarily "wrong". I just suggested an alternate way which allows normal access to the 741, the same as all other op amps, and doesn't require the addition of a new folder.

Did you close LTspice and restart it after adding the files?
 

Veracohr

Joined Jan 3, 2011
783
You don't really need a dedicated symbol for the 741, just add opamp2 to your design and rename it LM741, then add ".include LM741.lib".
 

eetech00

Joined Jun 8, 2013
4,705
You don't really need a dedicated symbol for the 741, just add opamp2 to your design and rename it LM741, then add ".include LM741.lib".
To avoid any confusion, you don't really "rename" it.
Change the "opamp2" attribute value to the name contained in the LM741.lib file that identifies the LM741 subcircuit.
For example, if the subcircuit statement is ".subckt LM741A 1 2 3 4 5 6 7 8", change the value to "LM741A", without the double quotes. In addition, the number of pins defined by the .subckt statement needs to match the number of pins on the symbol. In my example, there are 8 pins, so the opamp2 won't work and will produce errors because it only has 5 pins.

eT
 
Top