Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
subcircuit macromodel
Hello.
I have recently downloaded Ltspice and am trying to run a simulation with a triode tube in but I get an error. I think this is because the triode needs a subcircuit macromodel that I need to load into the triode symbol. I am not sure how this is not and have looked in the help function but was unable to find anything. Does anyone know how I can add a triode subcircuit macromodel to my circuit or direct me to a help page where I can learn about it. Thanks for your help Kind Regards, Mike Harris |
--- In LTspice@..., Michael.Harris@... wrote:
Hello Mike, You should copy the model file into the folder of your schematic. Then add a .lib or .inc directive into your schematic. .lib name_of_model Please don't keep your own designs in any directory below the path C:\program files, because you don't have all the sometimes necessary permissions in this folder. Best regards, Helmut |
The other alternative, if the triode subcircuit is relatively short (say
less than one or two dozen lines), is to paste it directly onto the schematic. In LTspice, click on the ".op" icon (far right on the toolbar) to add a "SPICE directive". A SPICE directive can be anything that you want to appear in the SPICE netlist. That includes subcircuits. Now copy (ctrl-C) the contents of the subcircuit from a text editor, and paste it (ctrl-V) into the box in the SPICE directive pop-up window, and click OK. Place it in any available space on the schematic (the position doesn't matter). Functionally, a .lib or .include (.inc) statement does the same thing. It makes the subcircuit appear in the SPICE netlist. Andy |
Thanks Andy, Helmut,
This is helpful. The Triode symbol within LTSpice does not have a subcircuit macromodel attached to it, I need to supply this myself. As I am not familiar with the format of how these subcircuits appear within LTSpice or what it is for a Triode does anyone know where I can get this from? Is there a library online that I can get it from or a subcircuit that I can edit? Kind Regards, Mike Harris From: Andy <Andrew.Ingraham@...> To: LTspice@... Date: 23/07/2013 03:59 Subject: Re: [LTspice] subcircuit macromodel Sent by: LTspice@... The other alternative, if the triode subcircuit is relatively short (say less than one or two dozen lines), is to paste it directly onto the schematic. In LTspice, click on the ".op" icon (far right on the toolbar) to add a "SPICE directive". A SPICE directive can be anything that you want to appear in the SPICE netlist. That includes subcircuits. Now copy (ctrl-C) the contents of the subcircuit from a text editor, and paste it (ctrl-V) into the box in the SPICE directive pop-up window, and click OK. Place it in any available space on the schematic (the position doesn't matter). Functionally, a .lib or .include (.inc) statement does the same thing. It makes the subcircuit appear in the SPICE netlist. Andy |
Hello Mike,
toggle quoted message
Show quoted text
You could look in our Files section for models and examples. Files > Lib > Tubes_Valves > Koren_Tubes.cir Tube_IM.lib Another source Best regards, Helmut --- In LTspice@..., Michael.Harris@... wrote:
|
Thanks for your help.
Kind Regards, Mike From: "Helmut" <helmutsennewald@...> To: LTspice@... Date: 23/07/2013 11:14 Subject: [LTspice] Re: subcircuit macromodel Sent by: LTspice@... Hello Mike, You could look in our Files section for models and examples. Files > Lib > Tubes_Valves > Koren_Tubes.cir Tube_IM.lib Another source Best regards, Helmut --- In LTspice@..., Michael.Harris@... wrote: get this from?(ctrl-C) the contents of the subcircuit from a text editor, and paste it (ctrl-V)it in any available space on the schematic (the position doesn't matter).It makes the subcircuit appear in the SPICE netlist. |
to navigate to use esc to dismiss