¿ªÔÆÌåÓý

Re: Create symbols.


 

On Tue, Feb 25, 2025 at 05:43 AM, <j.bernabe1@...> wrote:
For example, I've opened (opamp2), how can I associate it to the library or file (. lib or . sub) ??? and how do I match the pins with their true function ??
There are two no, three things you should do:
  1. Verify that the comparator model's subcircuit has the same number of pins in the same order: In+ In- V+ V- OUT.
  2. Change (edit) the name next to the opamp2 symbol, from "opamp2", to the actual name of the subcircuit of your comparator.? The name of the subcircuit is the name that you see immediately after the command ".SUBCKT", when you examine the contents of the library file.? It is NOT the filename name of the file.
  3. Additionally, include the library file into the simulation, by adding this SPICE Directive anywhere on your schematic: ".lib filename.ext" where you use the actual filename.ext of the library file.? If that library file is not already in the same folder with the schematic, nor in one of your Model Library areas that you may have already set up in LTspice's Control Panel, then the filename should also have the relative or absolute path to the library file.
Some examples of (3) are:
  • .lib MyComparator.lib
  • .lib models\MyComparator.lib
  • .lib ..\models\MyComparator.lib
  • .lib \Mymodels\comparators\MyComparator.lib
  • .lib "C:\Users\MyName\My Documents\My LTspice Models\comparators\MyComparator.lib"
?
Andy
?

Join [email protected] to automatically receive all group messages.