I have LT Spice the latest version XVII and I have tried to add some models from component supplies. I did it following instruction:
- I created 2 subfolders in library folder lib placed in My user name/documents/LTSpiceXVII and either sym subfolder or sub subfolder with name MyLib for schematic symbols and model lib/sub files.
- Copied some standard schematic library file with sym extension, for example, bipolar transistor and I changed standard name to component name.
- Opened it in LT Spice and from menu Edit/Atributes
- In Symbol Attribute Editor window I have changed: prefix to X, in SpiceModel I typed the component model location with file name, in Value and Value1 I typed name of component and model.
- I saved it When I created schematic and found that component in library list and I placed it in schematic. When I wanted to edit it I got error message:
Could anyone tell me what is going on and why I can not edit it.
Thank you for your help. Indeed,your advice "Try adding your subcircuit name in the SpiceModel line, and the path and name of the library in the ModelFile line, and it should work as you probably intended" helped and it works as I wanted.
At the moment I have another issue. I added model with type model, this time and when I edited schematic attributes and as prefix I typed M instead of X, because it is not sub-circuit model, in SpiceModel line I put name of model, in ModelFile line I put path and file containing thes spice model. When I run simulation I get an error message like this:
I don't know really what prefix I should use in schematic attribute editor when I want to add the model with model type, not sub-circuit model? Maybe to solve this problem I could edit in model file and I could add some lines like those
.SUBCRK model_name 123
Q1 123 MAIN parameter
.model MAIN NPN
{body of model}
What do you think about it? But I don't still know what parameter I should use? I think it is easier way to do it.
Thank you in advance,