I changed from LTspice XVII to LTspice 24. Then I tried to import a third party model (LM358) into LTspice. Apparently the import of components from third party suppliers has changed compared to LTspice XVII.
There are many methods how to add components to LTspice. I have chosen the method where the new component is then available in the library. The procedure is recommended in the help of LTspice (search in the help for “Third-party Models”, but not necessarily by some users on various forums. It is best to form your own opinion.
Here are my experiences. Hopefully it helps others.
Procedure if you want to import a component for the first time
In LTspice XVII, the data was previously stored in the folder C:\Users…\Documents\LTspiceXVII\lib.
This seems to have changed in version 24. Now the data is stored exclusively in the folder C:\Users…\AppData\Local\LTspice\lib. Strangely enough, LTspice warns you when saving that this folder will be overwritten during an update. But I could not select another folder.
- First create the AutoGenerated folder in C:\Users\…\AppData\Local\LTspice\lib\sym. i.e. C:\Users\…\AppData\Local\LTspice\lib\sym\AutoGenerated
- Place the subckt (extension often *.lib, *.sub or “txt or something else, the file is written in plain text) in the folder C:\Users\erich\AppData\Local\LTspice\lib\sub and rename it to *.sub.
- Open the file in LTSpice.
- Right-click on the line with SUBCKT and select „Create symbol“.
- Customize the symbol as desired. The pin assignment is in the file *.sub.
- You can draw any symbol in the symbol editor. First delete the yellow square. Use Ctrl l to draw lines. Right-click on a pin to change the designation. However, you must adhere to the pin assignment according to the *.sub file.
- Save in Autogenerated.
- Now the new component can be used and placed in a schematic.
- Best is, to test the new component with a test circuit
Adding further components
If you want to add further third-party components, you can proceed as above, except that you don’t need to create the AutoGenerated Folder.
Schreibe einen Kommentar