2
\$\begingroup\$

I'm trying to add the mmbt3904lt1g model to LTspice. - I've copied its data from the MMBT3904LT1.LIB.txt in the standard.bjt library. - I've added an NPN to my schematic then I've changed its value to mmbt3904lt1g - through the Edit->spice directive I've pasted the path to this library I thought it was all to use this device but no simulation is achieved.. I get only: Can't find definition of model "MMBT3904LT1g"

where I'm doing wrong ?

\$\endgroup\$
  • \$\begingroup\$ As you should be able to see from the .model statement, the name of the model is Qmmbt3904lt1g, not MMBT3904LT1g. \$\endgroup\$ – Oleksandr R. Apr 20 '16 at 11:43
  • \$\begingroup\$ Good point by Oleksandr: LTSpice uses the model definition (within the file), not the filename. \$\endgroup\$ – Peter Smith Apr 20 '16 at 11:56
  • \$\begingroup\$ Thx Oleksandr R, that was the mistake :) \$\endgroup\$ – Tova Apr 21 '16 at 7:04
3
\$\begingroup\$

If the model definition is a whole subcircuit (starts with .SUBCKT), you need to use the X prefix: Ctrl + Right click on the component, and set the prefix value to "X".

Also check that the Value is set according to the name of the SUBCKT.

Also check that you have an ".include" directive somewhere on your schematic, set with the correct path of the file. Alternatively, you can paste the entire component description within a spice directive block on your schematic, but it takes a lot of space.

I wouldn't recommend putting the definition within standard.bjt file, as you seem to have done. I think you can't put whole SUBCKT in there (I also seem to remember it requires restarting LTSpice).

\$\endgroup\$
0
\$\begingroup\$

If you have added a .model statement into standard.bjt for the mmbt3904lt1g then in your schematic you should be able to right-click on the transistor and select "Pick New Transistor" and select the mmbt3904lt1g from the list.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.