Why is this mosfet not included in the circuit?

Thread Starter

tienk

Joined Apr 8, 2024
76
circuit is not running saying the bss138 mosfet is not included even though i included it in the schematic via the .inc filename. I have attached the circuit file and the mosfet spice and txt file
 

Attachments

eetech00

Joined Jun 8, 2013
4,725
circuit is not running saying the bss138 mosfet is not included even though i included it in the schematic via the .inc filename. I have attached the circuit file and the mosfet spice and txt file
Clear the BSS138_ZTX.asy symbol's "Modfile" attribute.
 

Thread Starter

tienk

Joined Apr 8, 2024
76
Edit the symbol file "BSS138_ZTX.asy".
Look for the "Modfile" attribute, and remove the value.
Save and close.
Open the schematic, remove the symbol, then re-add the symbol.
how exactly do you edit the symbol file because i cant find where to edit it
 

eetech00

Joined Jun 8, 2013
4,725
when i delete the modelfile save and restart ltspice i cant even find the symbol anymore
You must have used "create symbol" function to automatically create a symbol using a .subckt definition. When the symbol is created, the symbol file is placed in the autogenerated folder and the absolute path to the subckt file is auto populated in the "modelfile" attribute of the symbol. I always remove the "modelfile" value because it causes more problems for me than it solves.

Attached is the symbol with the "modelfile" value removed and the pins renamed. Save it in the same folder as your schematic.
Then remove and replace the symbols on the schematic with the modified one.
Make sure the BSS138.txt file is located in the schematic folder, and add this directive to the schematic:

.inc BSS138.txt
 

Attachments

Thread Starter

tienk

Joined Apr 8, 2024
76
Attached is the symbol with the "modelfile" value removed and the pins renamed. Save it in the same folder as your schematic.
Then remove and replace the sym
You must have used "create symbol" function to automatically create a symbol using a .subckt definition. When the symbol is created, the symbol file is placed in the autogenerated folder and the absolute path to the subckt file is auto populated in the "modelfile" attribute of the symbol. I always remove the "modelfile" value because it causes more problems for me than it solves.

Attached is the symbol with the "modelfile" value removed and the pins renamed. Save it in the same folder as your schematic.
Then remove and replace the symbols on the schematic with the modified one.
Make sure the BSS138.txt file is located in the schematic folder, and add this directive to the schematic:

.inc BSS138.txt
Thank you
 
Top