Author Topic: (LT)SPICE wizards? What is wrong with this model?  (Read 12802 times)

0 Members and 1 Guest are viewing this topic.

Offline c4757pTopic starter

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
(LT)SPICE wizards? What is wrong with this model?
« on: March 16, 2013, 09:01:25 pm »
(Posting here because I guess it's the closest match.)

I was hoping someone here would be able to find the problem. I downloaded a model from TI for the LM5050 power supply OR-ing controller. It's a PSPICE model. I've had excellent luck in the past using PSPICE models in LTspice (even ones that claimed to use advanced PSPICE features), but this one has me stumped.

Whenever I include this model in LTspice, I always get an error: Can't find definition of model "x", where x is the name of whatever node is connected to "IN". I'd include a schematic, but the schematic doesn't matter one bit - it does this even if the LM5050 is the only thing in the file, with GND grounded. Since it appears to be treating a node like a model name, I am assuming it's a syntax error somewhere, but to my eyes the file looks fine. Any ideas?

(Also included the .asy file I prepared if anyone wants a quick way to pop this into LTspice, though I figure whatever problem is there is best solved by looking at the model text.)
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline osf31

  • Newbie
  • Posts: 1
Re: (LT)SPICE wizards? What is wrong with this model?
« Reply #1 on: March 26, 2013, 07:43:17 pm »
Hi,
You can try to rename the symbol file from "LM5050-1asy.txt" to "LM5050-1.asy"
Then edit with LTspice the symbol attribute and change:
 *Line Prefix "U" to "X" ( for subcircuit)
 *ModelFile "LM5050-1.lib" to "LM5050.txt" (correct  .txt) ;)

osf31 
« Last Edit: March 26, 2013, 07:46:08 pm by osf31 »
 

Offline c4757pTopic starter

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: (LT)SPICE wizards? What is wrong with this model?
« Reply #2 on: March 26, 2013, 07:48:33 pm »
Hi,
You can try to rename the symbol file from "LM5050-1asy.txt" to "LM5050-1.asy"

I renamed it for posting to the forum because of the file extension restrictions.

Then edit with LTspice the symbol attribute and change:
 *Line Prefix "U" to "X" ( for subcircuit)

Yup, that's it! Somewhere in my SPICE self-taught "education", I seem to have missed the U/X distinction.  :palm: Fixed. Thank you!
No longer active here - try the IRC channel if you just can't be without me :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf