Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: Whither 4053_tercio.asy
开云体育I can live without them, and I'm sure Andy
will provide all the help you need. On 2024-12-21 23:25, Andy I via
groups.io wrote:
-- OOO - Own Opinions Only Best Wishes John Woodgate Keep trying |
Re: Whither 4053_tercio.asy
On Sat, Dec 21, 2024 at 06:17 PM, Mike Fraser wrote:
Thanks, Mike. ?
I don't know if it matters (to John W), but your uploaded .zip file is missing the symbols "1To2.asy" and "switchana.asy".
?
Andy
?
? |
Re: Whither 4053_tercio.asy
A much older version of "SwitchAna.Lib" was also mentioned in this 2008 message thread:
/g/LTspice/topic/50176653 ("X046 Lib & Cmos Switchs Libs")
but it appears they did not successfully upload the library containing that and other files.
?
It looks like they may have uploaded the whole thing to a different Yahoo!Group which does not exist anymore.? There may be some hope of finding it again but don't hold your breath.? (At one time I downloaded the files from the extinct LTspiceDocs group, but I might not be able to find them today.)
?
That 2008 message thread also mentions "LTspicePlus", which I think was another large collection of user-contributed models and files to use with LTspice.? I think you can find LTspicePlus at the LTwiki website, here:
? ?
Scroll down to "New Updated Version".
?
I think LTspicePlus downloads as a self-extraction .exe file - so it is really a .zip file with self-unzipping code included.? Maybe that librarry contains all the missing information you seek.
?
Andy
? |
Re: Whither 4053_tercio.asy
On Sat, Dec 21, 2024 at 02:40 PM, John Waugaman wrote:
It's difficult to trace back in time, 7 years later.? But the library file "SwitchAna.Lib" was uploaded and mentioned in this thread: /g/LTspice/topic/50239806 ("Question about CD4053").
Unfortunately, that .Lib file was the only thing uploaded then.? Bordodynov was the uploader, and he is still occasionally active in this group so maybe he can fill in the gaps.
?
Regarding the missing parameters, just define them yourself, maybe something like this:
? ? .param Vcc=10? ?(use your actual voltage)
? ? .param Vel=1? ?(guessing that Vel is a relative speed setting where 1 = nominal)
?
For the LTspice symbol, I suggest drawing it yourself.? So, for the 4053, draw the symbol for a CD4053, see how the pins line up with the .SUBCKT definition (".Subckt 4053_tercia I inh xio yio xoy"), and you might be good to go.
?
That .Lib file apparently came from somewhere else, and the one .Lib file might be the only thing that made it into this group's Files.? I suggest carefully reading the thread above about the CD4053 to see if you can find any clues.? Otherwise, wait to hear from Bordodynov himself.
?
Andy
?
? |
Re: OPA891 / OPA2891 Model Needed
On Sat, Dec 21, 2024 at 12:20 PM, <info@...> wrote:
Just to be clear - ?
Adding "OPA891" as the Value2 attribute has nothing to do with putting your symbols and models in your user-defined locations.
?
Andy
? |
Re: OPA891 / OPA2891 Model Needed
开云体育Problem solved: I added "OPA891" to Value 2 in both my OPA891 and OPA2891 symbols and now my sims all work using my user defined locations. Thanks to all who helped me figure this out. You spent precious time helping me and I deeply grateful. Steve ?
On 2024-12-21 11:46, Andy I via groups.io wrote:
|
Re: OPA891 / OPA2891 Model Needed
On Sat, Dec 21, 2024 at 10:56 AM, <info@...> wrote:
That is why I wrote this, in # 156924:
I don't know how you missed it.? Put the symbol in a folder in your User-defined Symbol Search Path, and put the model in a folder in your User-defined Library Search Path.? Those User-defined Lib. and Sym. Search Paths are in the LTspce Control Panel.? Symbols and models that are there in those user-defined locations, can be "seen" by LTspice schematics anywhere on your computer.? They are the user's equivalent of LTspice's own libraries.
?
User-defined Lib. and Sym. Search Paths have been a part of LTspice for many versions and many years.? I think they were added in LTspice XVII, which dates them to eight years ago in 2016.
?
The model - whether it was "my" model or any other model - is totally, completely, 100% unrelated to where it lives!? If Windows finds the file, then LTspice finds the file and it does not care whose file it was.? If you make your own model file, great.? Go for it.? ?If you leave the model file unmodified from T.I., great.? Go for it.? No matter whether it is modified or the original unmodified file from T.I., it makes no difference to whether Windows and LTspice can find it.? The contents of the file and the location of the file are two completely independent things.
?
I thought we made this clear already.? THE FILENAME DOES NOT MATTER, as long as you refer to it by its actual filename.? You can save or rename the model file with the filename FOOBAR.ARRGH if you want to.? As long as you call it by its actual filename, LTspice doesn't care whether the name ends in .lib or .sub or .mod or .txt or .doc or .xyzzy or even no extension.? All you need to do is make sure that you refer to it by its ACTUAL filename.? The filename extension is part of the filename. Don't let Microsoft Windows trick you into thinking that the filename's extension carries some sort of magic.? It doesn't.
?
Andy
? |
Re: OPA891 / OPA2891 Model Needed
开云体育It will nearly do that if you create your own
libraries for symbols and models. See 'Settings > Search
paths' in the Help. You do have to select the folder from a
drop-down list. On 2024-12-21 15:56,
info@... wrote:
? I really want to be able to add the symbol to the schematic and have LTspice find the proper model by itself. -- OOO - Own Opinions Only Best Wishes John Woodgate Keep trying |
Re: OPA891 / OPA2891 Model Needed
开云体育Tony and Andy, Thanks for the demo schematic which proves that the model itself is OK and that changing the line that defines the functions to match opamp2 works perfectly when the model is in the same directory as the .asc file and the .lib command defines the model. It is a pain to copy the model to every directory with an .asc in it and add the .lib directive to every simulation.? I really want to be able to add the symbol to the schematic and have LTspice find the proper model by itself. This means that the "Andy" modified model should be able to live in my directory and the symbol should be able to call it, but I am not calling it correctly in the attributes of the symbol. BTW I did not confuse the netlist numbers on the symbol with IC package pins.? I agree that the symbol is not pointing to the Model due to an error in my attribute editing. Does renaming the Model Suffix from .lib to .sub matter? ?
On 2024-12-21 04:18, Tony Casey wrote:
|
Re: OPA891 / OPA2891 Model Needed
开云体育On 21/12/2024 06:49,
info@... wrote:
To save you the frustration of more wasted time, I have uploaded an OPA891 demo schematic, including a model suitably modified according to the exact advice given by Andy, previously -- Regards, Tony |
Re: OPA891 / OPA2891 Model Needed
On Sat, Dec 21, 2024 at 12:49 AM, <info@...> wrote:
There are multiple problems with that line, pointing to a few mistakes.
?
The pin-order is all messed up.? It seems to have connected the input pins to net N002 and ground, the power pins to nets N003 and V+, and the output goes to net V-.? That can't be right.? Did you alter the pin-order of the symbol?? Don't do that.? Did you mistakenly use package pin numbers, thinking that the ORDER of pins is the same as the package pin number?? Don't do that either.? SPICE/LTspice does not want to know what the package pin numbers are.
?
The name "tss/opa891_model_v1p1.lib" is stuck in there where it does not belong.? That might cause LTspice to try to find a subcircuit by that name.? Of course it does not exist.? Furthermore, I believe that the model file itself was never being loaded at all.? That would surely cause problems because LTspice would be totally unaware of that subcircuit, so it would indeed be "unknown".
?
I strongly suggest deleting the SpiceModel attribute, and use the ModelFile attribute instead.? The SpiceModel attribute does not necessarily refer to a filename that you want to be loaded.? It does in the unique case where both the Value and Value2 attributes are defined, but I think not otherwise.? You probably did not use it that way with both Value and Value2.
?
People can get themselves in trouble by trying to use LTspice in ways it was not supposed to be used.? And then they waste time trying to fix problems that they made for themselves.
?
Andy
? |
Re: OPA891 / OPA2891 Model Needed
开云体育It appears that the symbol is able to call the OPA891 spice model without problem. I edited the model to make the pins agree with the conventional symbols, but it won't run I used the TI model unedited and I changed the symbol pin net numbers to match, but it won't run. It gives the same error every time: " Unknown subcircuit called in: I believe that someone has this model running, but I don't understand the inner workings of LTspice well enough to troubleshoot this error. Thanks for all your help. Steve ?
On 2024-12-21 00:09, Andy I via groups.io wrote:
|
Re: OPA891 / OPA2891 Model Needed
On Fri, Dec 20, 2024 at 03:38 PM, <info@...> wrote:
That is not new to Version 24.? I think it has been such ever since LTspice IV.? People who ignored the advice and tried adding their models in the wrong place, sometimes found that it did not work.? It was a risky thing to add your models to the program's own library area (which I assume is what you meant by "the factory models"). Creating user-defined Sym. and Lib. Search Paths has been part of LTspice XVII for some years now.? If you wish having central locations for your model files, that is probably the best way to do it, and has been for some time now. ?
Yes, that entire file is the SPICE model for the OPA891.? If you did not have the model file where LTspice can find it, then LTspice would not find it and the simulation would be in trouble.? That is true.
?
I might be mistaken, but I believe the ModelFile attribute is the better one to have used.? There are certain "exceptions" that one gets into when using the SpiceModel attribute so I would avoid that one if I were you.
?
"TSS/OPA891.sub" would be correct only if that is the filespec of your model file.? But you said that the model file's filename is "OPA891_Model_V1p1SAH.lib" so that is a problem.? It makes no sense to call a file using a different filename than it actually has.? AI aside, computers don't like guessing what you were thinking.
?
Of course!? See above.? The filename you used must match the actual filename.? Because you are telling it the filename of the file to load, that filename must be the actual filename.
?
No, there is no other stuff.? Everything in that file is part of the model.
?
It is not unusual for a model to use more than one subcircuit, all of which are part of the model.? If you eliminated the rest, it wouldn't work.
?
The structure T.I. used here is not one that I like, where they put all the secondary subcircuits separate from the main one, instead of inside it.? I would have done it differently..? There is a small possibility of having conflicts between those secondary subcircuits and another model in the same simulation.? The likelihood of that is very small, but could happen if you use another T.I. model in the same simulation.? Oh well.
?
It will use all of it.? It will do the right thing.? That is how SPICE works. ?
Andy
? |
Re: OPA891 / OPA2891 Model Needed
开云体育On 20/12/2024 21:38,
info@... wrote:
That has been the advice from here for many years prior to V24. The SpiceModel attribute is optional. But if you assign a value to it, that should be exactly the name the of the model file. Whether this has a "sub", "lib", or any other suffix makes no difference. If you leave it blank, you need to inform LTspice of the name of the model file some other way. I prefer adding: .lib ModelFileName ..as a SPICE directive. This is visible on the schematic and unambiguous. It is also easy to view this file file by Right-clicking on the directive > Open. That is exactly what the .lib directive does. That's strange, as I'm not sure V24 will run on Win7, according to the ADI website. You would be wise to back up critical files before making any major changes to your system. I would imagine you have heard that advice before. I recommend you have a regular backup regime in place, preferably an automatic schedule. You never know when disaster will strike - don't make it any worse by not having backups. -- Regards,
Tony |
Re: OPA891 / OPA2891 Model Needed
开云体育It's unwise to store your stuff in the LTspice 'working copies' of the native folders, that also? should never be touched. This is because your 'LTspice' becomes different from those of everyone else, and that complicates sharing and advising. There are two safe places to store, and I recommend using both - the folder that holds your .ASC file and your personal library, set up in User-defined Lib. Search Path folders. On 2024-12-20 20:38,
info@... wrote:
-- OOO - Own Opinions Only Best Wishes John Woodgate Keep trying |
Re: OPA891 / OPA2891 Model Needed
开云体育Since Version 24 came it appears that I am supposed to keep my user defined models in a different place than the factory models, However I have not yet made the switch from the file structure I had previously.? I keep my models in subdirectories in the factory lib and sym folders. I edited the Pin locations in the TI supplied OPA891_Model_V1p1.lib and renamed the edited version to OPA891_Model_V1p1SAH.lib.? I presume that I must copy that entire file to a directory where the symbol can call it. I have made 2 symbols: OPA891 and OPA2891 which should both call the same Model. I edited the Attributes as follows: Prefix X SpiceModel? ?TSS/OPA891.sub? (my customized models are in a TSS subdirectory) Value? ? ?OPA891? Remaining attributes are blank It seems that the SpiceModel attribute should be?OPA891_Model_V1p1SAH.lib? rather than .sub. along with directions for the symbol to find it. There is a whole lot of other stuff in that file other than the opamp model itself.? Should the symbol call the whole .lib file and it will figure out which part to use? Sorry for the newbee questions, but figuring out the directory structure in version 24 isn't easy for me. I'm still smarting from when an attempted install of version 24 erased my entire Win 7 LTSpice installation without warning. ?
Many thanks, Steve On 2024-12-20 09:45, Andy I via groups.io wrote:
|