Installing and using LTspice IV (now including LTXVII), From beginner to advanced

Administrator
Joined 2007
Paid Member
Not sure if it has been mentioned anywhere but I spotted this on the latest installer of LTspice XV11. I was doing an install on an old laptop and gave it a whirl. A quick install for sure. Haven't really tried it beyond the most basic stuff. I couldn't just find where the program lives after install either which is a bit odd unless it added to the existing install. Bit of a mystery is that.

The installer is here for anyone interested. Based on my experience if you open the link then it will immediately launch the installer, it is NOT a page about the new version. Copy and paste the code below if you want it.

https://LTspice.analog.com/download/latest/LTspice64.msi


New LTspice.png
 
  • Like
Reactions: 1 user
According to the beta documentation, it can be installed on the same PC as the released version without conflict. It is a completely separate installation from the stable release version so it is probably safe to install (although I myself will probably wait until the actual release of version 17.1).
 
  • Like
Reactions: 1 user
Administrator
Joined 2007
Paid Member
Thanks Ray. I had a bit more of a play earlier and one advantage (I think) is that by storing the user files in %localappdata% directories means that they are not indexed (again I think that is what will happen). If so then that could be advantageous to making and restoring disk images because the index file is not recommended to be included in a backup and programs such as Macrium automatically exclude the index file. That means a quick restore actually takes a long time to fully complete after the restore has finished as Windows has to reindex all those LT small files.

Interesting. One to watch I think rather than jump in and use the new version exclusively.
 
AX tech editor
Joined 2002
Paid Member
Please forgive my ignorance, but I am adapting the LM4562 model to LTSpice, using the datasheet and all, and these are the pins that I get for using. Which are the +In an -In pins? I have never seen Vinm and Vinp.
The pin names are just for your prsonal convenience, you can change them to anything you like with no difference in electrical behaviour.
What matters is the order of the pins in the model, that must correspond to the order they were placed in the symbol.
For instance, you often see models that start with the following:

*pins: Vcc Vee Vout Vin
.model x 1 2 3 4
. ..........

Then if you auto-create the symbol with LTspice which is what you'd normally do, the symbol will have the pins 1 2 3 and 4. From the above, you know that they really are the Vcc, Vee, Vout and Vi pins of the model as well as the real thing.
So you can right click the numbers in the symbol and rename them to Vcc Vee Vo Vi if you want, or to thisispos, thatstheother, wow and Vin and the operation of the model in a circuit will not change.
The order is important, not the name.* And don't forget to save the symbol after modification!

Jan

*If you look through the text of the model you will see that nodes 1, 2, 3 and 4 are used in many places, where those pins connect to the R's and C's etc of the model circuitry. This is no different than any normal LTspice circuit.
 
Dear forum users,

For a school project i am designing a tube amplifier.
To do some simulatios, I am using LTspice.
But now i get this error, "Undefined subcircuit: triode"
I am using the standard triode model, and this is my model .lib

.SUBCKT ECC83 1 2 3 ; P G C; (Triode)
Mullard data sheet 1970 AKA 12AX7A 7025
library format: LTSpice 31-May-2008
X1 1 2 3 TRIODE MU=98.11 EX=1.459 KG1=1734.7 KP=754.39 KVB=119.9 VCT=0.50 RGI=2000 CCG=2.3p CGP=2.4p CCP=0.9p ;
.ENDS ECC83

Naamloos.png



Does anyone know what I am doing wrong?
 
This looks like the Norman Koren model. Individual triode models (like for the ECC83) are specified with parameters that apply to a generic model, in this case a model named "TRIODE."

Try this ECC83 model instead. It includes the generic TRIODE model as well as the parameters for the ECC83. It also include the DX model required by the generic TRIODE model.

Code:
.SUBCKT ECC83 1 2 3 ; P G C; (Triode)
* Mullard data sheet 1970 AKA 12AX7A 7025
* library format: LTSpice 31-May-2008
X1 1 2 3 TRIODE MU=98.11 EX=1.459 KG1=1734.7 KP=754.39 KVB=119.9 VCT=0.50 RGI=2000 CCG=2.3p CGP=2.4p CCP=0.9p ;
.ENDS ECC83

******************
.SUBCKT TRIODE 1 2 3 ; A G C
E1  7 0 VALUE={V(1,3)/KP*LOG(1+EXP(KP*(1/MU+(V(2,3)+VCT)/SQRT(KVB+V(1,3)*V(1,3)))))}
RE1 7 0 1G
G1  1 3 VALUE={(PWR(V(7,0),EX)+PWRS(V(7,0),EX))/KG1}
RCP 1 3 1G    ; TO AVOID FLOATING NODES IN MU-FOLLOWER
C1  2 3 {CCG}  ; CATHODE-GRID
C2  2 1 {CGP}  ; GRID=PLATE
C3  1 3 {CCP}  ; CATHODE-PLATE
D3  5 3 DX     ; FOR GRID CURRENT
R1  2 5 {RGI}  ; FOR GRID CURRENT
.ENDS    TRIODE

******************
.MODEL DX D(IS=1N RS=1 CJO=10PF TT=1N) ; diode used by the Triode, Pentode Beam Tetrode models
******************
 
Account Closed
Joined 2010
Hi guys! There's something I don't understand about LTspice noise simulations.If I perform the .noise command and a fft on the same circuit i get two results.I always thought that the FFT baseline represents the noise of the circuit, but that doesn't correlate with the noise density result from the .noise command in a circuit where I should get the lower noise where the .noise command returns me the higher noise density throughout all the adio band. Those two circuits have exactly identical input source and output load , and identical input and output signal amplitudes.Can someone explain what the baseline in the fft graph shows?
 

Attachments

  • hirbaltrz1fft.png
    hirbaltrz1fft.png
    7.6 KB · Views: 66
  • Hirbal1trzscnoise.png
    Hirbal1trzscnoise.png
    16.5 KB · Views: 59
  • Hirregcascodefft.png
    Hirregcascodefft.png
    7.6 KB · Views: 58
  • Hirregcascodenoise.png
    Hirregcascodenoise.png
    12.1 KB · Views: 61
Maybe a stupid question, but I can't seem to find the way to do a distortion versus level sim.
Anyone can give me a pointer?

Jan
I usually step the level of a .four sim and look at the log file (or copy it into a speadsheet -- or extract the values with a script -- and plot it from there). If you have any time constants in the circuit (like RC highpass etc) you need to run the sim for enough cycles for the time constants to fully settle, otherwise the results will be skewed. Time step also needs some thought to avoid errors.

Perhaps not what you have in mind, though.