I have downloaded spice model for transistor BCM847BS. It was text file with an extension prm and containing model definition with syntax .model model_name NPN. I placed this file in folder MyLib which has path: .......LTSpiceXVII/lib/sub/MyLib.
I copied sym file from standard NPN symbol file and I named it with new component's name. Then I open this sym file in the spice and I opened Edit/Schematic Attribute Editor and then I filled some fields.
Prefix: I don't know what prefix should? I am not sure I use X because it is not sub-circuit model, I think?
SpiceModel: name of spice model used in that model file
Value: BCM847BS
Value2: BCM847BS
ModelFile: path and file name where is model is located.
When I used NP as prefix I get an error message that
Thank you in advance for any help.
Hi
There's a few ways to do this. Here's as easy one.
The file contains a "model" definition so it is not a subckt.
This means you don't have to change anything in the native NPN symbol except the "value" property.
1. If you are placing your model files in the default LTspice path, then just copy the file to the default sub folder location and LTspice will find it.
2. Then, place an NPN symbol on the schematic and change the "value" field from NPN to QBCM847BS.
3. Place this statement on the schematic using the name of the file:
.lib Mylib\BCM847BS.txt
Note:
MyLib is a folder located in the default "sub" folder, so a relative path can be used as reflected in the .lib statement above.
If the file is not located in a path relative to the default "sub" folder path, the an absolute path must be specified.
4. Your done.
You can also add the model params to the default standard.bjt file (as described in post #7) but there is the risk of it being overwritten by LTspice program updates.
eT