EEVblog Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: Wimberleytech on November 30, 2018, 06:55:25 pm

Title: LTSPICE question
Post by: Wimberleytech on November 30, 2018, 06:55:25 pm
I have created a custom model for a shunt regulator.  I opened the netlist in LTSPICE, then created a symbol, placed it in the schematic...all is well.

Is there a way to navigate to the netlist directly from the LTSPICE GUI?  I can click on the symbol and navigate to the symbol editor, but I do not see a way to get to the netlist.

I can only do this by generating a top-level netlist and from there see where it is located (assuming I did not know already!) and click on it from the Windows Explorer.

Title: Re: LTSPICE question
Post by: Wimberleytech on December 01, 2018, 01:27:30 am
I guess the answer is "no."
Title: Re: LTSPICE question
Post by: T3sl4co1l on December 01, 2018, 06:38:58 am
Second result on Google? ??? http://ltwiki.org/LTspiceHelp/LTspiceHelp/Spice_Netlist.htm (http://ltwiki.org/LTspiceHelp/LTspiceHelp/Spice_Netlist.htm)

Tim
Title: Re: LTSPICE question
Post by: Wimberleytech on December 01, 2018, 12:28:29 pm
Second result on Google? ??? http://ltwiki.org/LTspiceHelp/LTspiceHelp/Spice_Netlist.htm (http://ltwiki.org/LTspiceHelp/LTspiceHelp/Spice_Netlist.htm)

Tim

Thanks for the snark.  Perhaps my question was not clear.
Suppose you have a schematic in LTSPICE.
You are going to add a new custom device.
This is simple to do:  https://www.analog.com/en/technical-articles/ltspice-simple-steps-to-import-third-party-models.html (https://www.analog.com/en/technical-articles/ltspice-simple-steps-to-import-third-party-models.html)
Place the device in your schematic and go on your merry way.

Later you want to edit the netlist of the custom device.  This is easy to do outside of the GUI. 
However, I would like to push into the netlist while inside the GUI.
I do not see a way to do that.


Title: Re: LTSPICE question
Post by: T3sl4co1l on December 01, 2018, 04:06:56 pm
Oh, the component model, not the full thing!

I'd just as well put the .SUBCKT on the schematic as a comment^Hcode box.

Tim
Title: Re: LTSPICE question
Post by: Wimberleytech on December 01, 2018, 04:48:29 pm
Oh, the component model, not the full thing!

I'd just as well put the .SUBCKT on the schematic as a comment^Hcode box.

Tim

Yup. 
I could do it that way I suppose, it would be nice to be able to traverse the hierarchy ultimately bringing up a text netlist when you reach the netlist level. 
It is not often that I will do this, so I will live with viewing outside of the GUI.
Title: Re: LTSPICE question
Post by: T3sl4co1l on December 02, 2018, 07:43:53 am
Could do hierarchical design but I think that's schematic not netlist view?  So, anything you have in netlist form would have to be rendered in schematic form.

Tim
Title: Re: LTSPICE question
Post by: Ian.M on December 02, 2018, 09:10:45 am
You can right click a .lib command and then open the file it refers to, so the best option may be to add .lib your_subcircuit.cir to the schematic, which should open it if its in any folder that LTSPICE searches for models.