element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) How should I add a component model for Eagle-LTSpice combo?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 2 replies
  • Subscribers 178 subscribers
  • Views 970 views
  • Users 0 members are here
  • ulp
  • ltspiceiv
Related

How should I add a component model for Eagle-LTSpice combo?

anonymous_engineer_8hflg
anonymous_engineer_8hflg over 9 years ago

I am trying to use the Eagle-LTSpice "Integration" to simulate a circuit, and this obviously means adding models for most components not made by LTC.

 

However the process is far from obvious, with too many arbitrary failure modes to get things working.  Problems encountered so far:

 

  1. There is no proper documentation except some incomplete notes at the top of the ULP source code.
  2. ULP script wrongly assumes that the custom (project-specific) Eagle .lbr files reside in the Eagle program directory (it was fixed in one part of the script, but not another).  So I have had to put a copy in a subdir under the Eagle builtin libraries dir and keep them in sync manually.
  3. ULP script requires extra annotations on every library symbol used, these are missing in the libraries included with Eagle and/or available from Element14, so I have to copy all used components to my own library and edit them one by one, even for trivial stuff such as resistors.
  4. The handling of multi-pin signals (as found on some components) is inconsistent with normal Eagle practice, preventing treating them as single pins in LTSpice.
  5. Components with 0 pins (such as alignment marks) cause silly errors, I had to edit the if statements in the ULP to not complain specifically about the case of 0 pins == 0 pins.
  6. The ULP command to generate an LTSpice symbol for a single Eagle symbol prompts to ask if I want to export for the entire library in a way that exposes an Eagle bug where one choice is selected as default, but another is highlighted and will be executed by pressing Enter.
  7. LTSpice related attributes/properties set in the Eagle schematic are not passed to LTSpice requiring the creation of custom Eagle components just to specify value variants.
  8. LTSpice only settings such as the simulation command and the studied signals are not preserved when changing things in Eagle and reexporting.
  9. It is very unclear how to specify where LTSpice should look for the relevant .sub or .lib file and how to specify the relevant component from that file.
  10. It is very unclear which LTSpice syntactic sugar should be added to an LTSpice circuit used as a model for an Eagle component.
  11. It is very uncleer which LTSpice syntactic sugar should be added to an LTSpice .sub or .lib to reference a lower level .sub or .lib for inner components (case in point: Eagle component is a single die with multiple basic components such as dual transistors with a common pin).
  12. Eagle is blocked in the ULP until LTSpice is closed.
  13. Every step of trying to fix things is made extra frustrating by the multiple manual steps needed to close LTSpice, change some syntax in the Eagle library, copy those changes to the wrong directory, "update" them into the schematic, rerun the various export steps, reenter the simulation command in LTSpice, only to be greated with a nonsensical error message caused by something undocumented not matching up between the various files.

 

So does anyone have a complete recipe, or should I just give up using this crap and manually recreate my entire schematic in LTSpice?

  • Sign in to reply
  • Cancel
  • autodeskguest
    0 autodeskguest over 9 years ago

    On 1/30/2016 8:55 PM, Anonymous Engineer wrote:

    I am trying to use the Eagle-LTSpice "Integration" to simulate a

    circuit, and this obviously means adding models for most components not

    made by LTC.

     

    However the process is far from obvious, with too many arbitrary failure

    modes to get things working.  Problems encountered so far:

     

     

    Hi Anonymous Eng,

     

    You've definitely dived head first into the ULP and I applaud you for

    that. However you've probably made a lot of changes that would make the

    complete recipe non-functional.

     

    You are correct in stating that documentation is practically

    non-existing and needs to be improved. Currently the complete recipe is

    only available in this webinar we did a while back.

     

    https://www.youtube.com/watch?v=PBEHUw7BhTs

     

    As you've already discovered the integration is very fragile because

    many assumptions are made about where things are stored, so any

    deviation here requires modifications in the ULP.

     

    As you've also already discovered ULPs are blocking so as long as

    LTSpice is open EAGLE is basically frozen. Changing that is going to be

    a lot of work for the devs but we recognize it's something that needs to

    be addressed along with having ULPs being able to interact with the mouse.

     

    Finally, the EAGLE-LTSpice bridge rely's on their being correspondence

    between LTSpice libraries and EAGLE libraries in order to move from one

    program to the other. An there are a few additional functions in the ULP

    to simply achieving that correspondence.

     

    The video should help clear things up, but feel free to contact us if

    you continue to run into issues.

     

    hth,

    Jorge Garcia

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • anonymous_engineer_8hflg
    0 anonymous_engineer_8hflg over 9 years ago in reply to autodeskguest

    I have kept my ULP changes as minimal as possibly (basically just fixing the if statement that objects to having 0 tagged pins when there are 0 pins to tag).

     

    I will look at the webinar video later when I have the time.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube