Electronics > PCB/EDA/CAD

(LT)SPICE wizards? What is wrong with this model?

(1/1)

c4757p:
(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.)

osf31:
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 

c4757p:

--- Quote from: osf31 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"

--- End quote ---

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


--- Quote from: osf31 on March 26, 2013, 07:43:17 pm ---Then edit with LTspice the symbol attribute and change:
 *Line Prefix "U" to "X" ( for subcircuit)

--- End quote ---

Yup, that's it! Somewhere in my SPICE self-taught "education", I seem to have missed the U/X distinction.  :palm: Fixed. Thank you!

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod