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

I did drawn a high openloop predriver based on the diamond input, using accuphase designs to combine to get idea,s

Hmmm it did oscillate on 5 Mhz of such, but after some tryouts, it seems that the voltage lines need decoupling, resistors and cap,s.

because LTspice does not like these oscillations it is sometimes difficult to find it.

As for short, the cascoded circuits does make high openloop and a nice current feedback give low distortions in LTspice.

By the way no crashes anymore, have other videocard with hardwareacceleration, was needed for pcb program Kicad.

I have a library where the mosfets in it from phillips does no good, these do not work well.

regards
 

Attachments

  • headphone-alone.jpg
    headphone-alone.jpg
    167.2 KB · Views: 198
  • diamond cascode-fullpower.jpg
    diamond cascode-fullpower.jpg
    274.7 KB · Views: 183
  • oscillation 5Mhz.jpg
    oscillation 5Mhz.jpg
    151.6 KB · Views: 178
Now I have a question about matching models in LTspice.

reason is I have used other transistors and I get uge offsets, is there a reason for this, can it be that also pnp and npn models cause this? I have gordell models from X did try also others all did change that offset and I get it not lower. the 2sc2240 and the 2sa970 did a good job lower offset to just 34 mV.

did enclose schematic for ksc and 2sc type transistor who did now well. see schematic.

Can someone explane that for me, I am very thankfull.

Have a nice day

regards
 

Attachments

  • circlotron CFP diamond-drivetesttor.asc
    11.3 KB · Views: 55
  • circlotron CFP diamond-drivetest1.asc
    11.3 KB · Views: 49
I have found the real reason of crashes and strange behaviors.

The program screentake does induce problems, the update manager of it crashes and I can not use F9 of LTspice when active, have the most strange effects.

It was a search but now I have it, and remove that program, I seek a other good screentake program.

Do you still live here? so quiet.
 
Administrator
Joined 2007
Paid Member
You can also create a shortcut that does that.

Filepath is:

Code:
explorer.exe ms-screenclip:

And there are some scissors (for an icon) here:

Code:
%SystemRoot%\System32\shell32.dll

or for a higher quality full screen image I use the 'PrntScr' key and then paste the image into paint.
 

Attachments

  • Annotation 2020-08-03 134004.jpg
    Annotation 2020-08-03 134004.jpg
    88.4 KB · Views: 121
I have now installed screenhunter, that one does fine, I did Shift windows key and s, nothing happen.

Screenhunter push F6 and get what you want.

But hee, why I get 49 volts on a place where this is not possible, the opamp has just 12 volt and ref is 350 mV

can ltspice get in trouble if there is a bad model or so?

never see this.
 

Attachments

  • ScreenHunter 03.jpg
    ScreenHunter 03.jpg
    313.9 KB · Views: 66
I have now installed screenhunter, that one does fine, I did Shift windows key and s, nothing happen.

The current build of Windows 10 replaced the old "Snipping Tool" with "Snip & Sketch." The Shift-Windows-S shortcut works for the new Snip & Sketch but not the old Snipping Tool, which has no built-in keyboard short cut. See link below.

https://support.microsoft.com/en-us/help/4027213/windows-10-open-snipping-tool-and-take-a-screenshot

So if you have not updated Windows to the 2004 build then you probably don't have Snip & Sketch, which is why the keyboard shortcut doesn't do anything.

I hope this helps.
 
This time it's me with a strange problem that I can't explain and never had before.
When running a sim with the following directives (that Jan Didden made me aware of),

.param Freq=10k
.param numcyc=20
.param dlycyc=5
.param FFT=2**16
.param simtime=numcyc/freq+dlytime
.param dlytime=dlycyc/freq
.param timestep=(simtime-dlytime)/FFT
.four {freq} v(out)
.tran 0 {simtime} {dlytime} {timestep}

I get a large discrepancy at this 10Khz between what .four reports and the FFT image.

The FFT shows, see first image below
H1 -10dB = 3.2e-1, corresponding with the RMS signal in the time image
H2 -100dB = 1e-5
H3 -125dB = 6e-7
H4 < -155dB = 2e-8

Via the .fear command I find in the error log
H1 4.5e-1
H2 2.4e-4
H3 1.5e-4
H4 1.2e-4

Even the fundamental is wrong, but look at H4, 1.2e-4 instead of 2e-8.

Doing the same for 1Khz, see second image, .four is still wrong starting with a wrong fundamental, but quite a lot better as at 10Khz, although the FFT's at 10Khz and at 1Khz are practically the same.
What can be the case of these huge discrepancies ?

Hans
 

Attachments

  • THD10k.jpg
    THD10k.jpg
    530.6 KB · Views: 195
  • THD1k.jpg
    THD1k.jpg
    558.1 KB · Views: 199
AX tech editor
Joined 2002
Paid Member
Hans, I noted that the .four can have some specific parameters set:

The Fourier analysis is performed over the period from the final time, Tend, to one period before Tend unless an integer Nperiods is given after Nharmonics. If Nperiods is given as -1, the Fourier analysis is performed over the entire simulation data range.

There may be similar issues with .four as with an FFT if it is not synchronous.
You could try some of the .four settings.
I have no experience with .four, don't use it as it is just for compatibility with older simulator versions, no idea how good it is.

Jan
 
Last edited:
Can somebody tell me why simulation goes strange, like I get 2 kV output from a opamp or it does give strange hang behavior.

Looks like if amp oscillate it go flipping. What can I do as .op for that stability? some people does set it into schematic to get stable simulations.

sometimes it does oke, I think i need .option cshunt= or so

thanks
 
Last edited:
Hans, I noted that the .four can have some specific parameters set:

The Fourier analysis is performed over the period from the final time, Tend, to one period before Tend unless an integer Nperiods is given after Nharmonics. If Nperiods is given as -1, the Fourier analysis is performed over the entire simulation data range.

Jan
Jan,
Thank you for your feedback. I tried several values for Nperiods, but it made the discrepancy even larger.
That's why I have now sent an email to LTspice@analog.com.
When something useful comes out, I will report it back in this thread.

Hans
 
Hi Guys.

I have a question about a simulation, it is a balanced diamond input driver part for a circlotron, however, if I do simulate it it flips to the supply rail, in this case the negative side, I have to inject 4 or so volts to get it on zero output voltage and as such balanced.

Maybe and I think I am right but still ask for shure, the transistor models are not acting as a paired transistor and does cause the offset unbalance, this driver needs paired transistors on some places.

Maybe there is a way to set ltspice for this.

Thanks and have a nice day.

PS I have now no crashes anymore for some weeks, it was software who cause this, when active I was not enable also to recover changes with F9.

regards
 

Attachments

  • ScreenHunter 31.jpg
    ScreenHunter 31.jpg
    258.8 KB · Views: 169