Adding LTspice subckt

Status
Not open for further replies.

Mosaic

Well-Known Member
Hello I am having difficulty adding this subckt model.

I have tried the steps to include via spice directive (.inc 2n6284.txt) which does not complain, but when I try to CTRL-rgt click an NPN symbol and paste the '2n6284' name in the 'value' line and then simulate it fails with a 'Can't find definiton' error.

The txt file is in the same folder as the asc circuit. I have successfully added a BAT 54 diode and LM324 opamp model with no probs. See here:
http://www.simonbramble.co.uk/lt_spice/ltspice_lt_spice_tutorial_4.htm
 
hi mosaic,
Change the .txt to .sub and place the file in the LTS 'sub' folder.

When you ctl right click, change prefix to 'X' as shown on this image
 

Attachments

  • AAesp04.gif
    38.8 KB · Views: 510
  • Draft111.asc
    840 bytes · Views: 377
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…