hi guys,
I have been following this thread [as a LTS user] and I find what Mike has said about the extension types and includes works OK for me.
Hi Eric,
Well, I can't get the model out of the SUB directory without the proper extension of the model saved. That narrows it down to the .sub extension as I save all added models with that extension in the SUB directory.
I did some further experimenting this afternoon, and used the generic DIP8 symbol in place of the MAX961 symbol, added the name attribute and tested it with the .include statement in place with different extensions. In the SUB folder, I copied the MAX961.sub file and "saved as" it with the .txt extension giving two models to test. The first and second test I tried both files in the .include statement and both worked because both files were pointed at individually.
Then I deleted the .txt file and tried it. The .include with the .sub extension worked, but when I changed the extension to .txt the error message clearly stated that MAX961.txt not found.
Then I reversed the process and converted the .sub model to the .txt extension. The .txt file in the SUB folder worked fine with the .include statement, but the .sub .include statement gave the error message. Then I tried it with
no extension in the .include statement and it gave the same error message.
Conclusion: The extension matters and is not "totally bogus".
Here are the 5 symbol attributes from the symbol (DIP8) I edited to produce the .inc statement free MAX961 symbol:
SYMATTR Value MAX961
SYMATTR Prefix X
SYMATTR SpiceModel MAX961.sub
SYMATTR Value2 MAX961
SYMATTR Description Low Power Ultra-Fast Dual Comparator W/ Hysteresis
The third line is the file pointer to the model file (.sub). If one were to edit that line to .txt or .wrd or .bus or nothing at all, the .sub file must be saved with that extension, or lack of, to be found; the path to the file is required. That is what I found with my experimenting two months ago when I dug into finding a method to make .inc free symbols, and that is what I found today.
I checked the version of LTS I'm running. It's 4.08o with the date 13 July, 2010. I synced the prog with LT 2 days ago. I don't think it is LTS, but rather something you and others may be doing outside of LTS like adding the path in some other manner so the model file can be found…or not…insufficient data on this end to derive a conclusion.
Cheers,
Merv