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

You use the 'Pulse' option to define any squarewave you want to create. It gives total control over rise and fall times as well as on/off period.

Post #31:
https://www.diyaudio.com/forums/sof...g-ltxvii-beginner-advanced-2.html#post4032832
It is just boring and unnecessary complicated for what we need most of the time: A simple square wave generator with the fastest rise and fall time available to see overshoots in our circuit. As sin. gen.: Just to set the frequency.

I'll have a look.
 
Here is a signal generator. The symbol and internal schematic are in the zip file, they must both be in the same folder as the schematic you want to use it on. I recommend opening Multisignal-test.asc and copying the generator there to your schematic.
 

Attachments

  • keantoken-multisignal.png
    keantoken-multisignal.png
    62.8 KB · Views: 197
  • Multisignal.zip
    2.2 KB · Views: 60
Thanks. I've been posting my Ampsim rig for years and no one ever used it, so I figured I would try a different tactic. I wonder if anyone will use this? BTW, I've been tweaking these generators for years, there are subtle things that make the operation less buggy.

I could break it up into individual sources, but I would rarely use it that way. Maybe I should mimic the Microcap generator symbols?

With all the sources together like this, you can do stuff like put the sine and square in series to test for ringing at peaks.
 
Here is a signal generator. The symbol and internal schematic are in the zip file, they must both be in the same folder as the schematic you want to use it on. I recommend opening Multisignal-test.asc and copying the generator there to your schematic.
Thanks a lot, keantoken.
I will use-it, for sure. Exists-it a way to add-it to the components Of LTSPice, to can use-it directly like the internal "Voltage" ?
 
Last edited:
Still, just try using any other other free simulators.
I cannot understand such a program like LTspice, free or not, text based, can exists in the 21th century.
All users spend thousand of hours to change the parameters at each new simulation change, it is tricky to get the good compromise between speed and accuracy... while all this work would be done once and for all via a GUI interface, changing all the needed parameters with a simple clic.
I am angry every time I have to use it with all the time I lose, and am never sure of the results because I probably forgot to change an important setting, like simulation time etc.
It is a tool, we, users, are interested in the results, not to learn how to be specialists in this tool manufacture.
A shame. A real shame !
 
Last edited:
You can't have it all. You can only identify your needs and find out what are the best available options to meet those needs. The amount of time and energy that needs to be invested may be more than you expected, but that doesn't necessarily mean your or the programmer's effort is wasted.
Your signal generator is an example. An other one is the parameters that you enter in transients via UI are copied the wrong way in AC. You have to re-enter them each time you swap from an analysis to an other.

About the development time, I was developing under C++, VBS, Delphi, PHP, Javascript etc. So, I have a little idea ;-) it takes a little time, but it is constructive as your efforts are not wasted.

The fact that the parameters are in the same file than the schematics is stupid and ugly. People like Mooly or you spend hours in explaining all the trics needed to make this program working correctly that could be implemented by default. And that do not imply you miss all the flexibility, because you can always modify the comportment manually.

An other example is the components models. Why the efforts of the users, like Cordels ones are not included in the program by the community ?

In fact, and i'm sure you will not contradict-me, the UI is such a miss that most people prefer to enter the parameters manually.

This program is able to make amazing miracles. Is-it too much asking that numdgt, numcyc, dlycyc, simtime, dlytime, timestep, prb to be calculated by the program itself, in order to be optimal (fastest while accurate enough) depending on the result you want to see (waves forms, distortion, FFT etc.) and the frequency ?
 
Last edited:
This program is able to make amazing miracles. Is-it too much asking that numdgt, numcyc, dlycyc, simtime, dlytime, timestep, prb to be calculated by the program itself, in order to be optimal (fastest while accurate enough) depending on the result you want to see (waves forms, distortion, FFT etc.) and the frequency ?

There are clearly ways LTspice could be better. If you can make a better frontend using LTspice as a backend, that would be marvelous. But as things stand there is no persuading other people to do it. Those other people have probably already given as much as they can justify for free without some form of material compensation.
 
Hello all again. Is there any way to simulate random variations in time and or in frequency and or in amplitude from the voltage sources available in the LTS4?. I want to test a tube voltage regulator composed by a 6B10 cascoded and a 6FM7 as series pass element. Many thanks in advance.

You have to use expressions in b-sources. Here is an example.
 

Attachments

  • Sine Noise.asc
    1.4 KB · Views: 48
  • Sine-noise.png
    Sine-noise.png
    52.7 KB · Views: 161
Version IV is absolutely fine wrt to UI. The new one is a bitch, though. Bloated with useless and buggy features, namely those 'editors' and that major screw-up with the sim command UI. Just stay away from it would be my recommendation.

I like it exactly because it is so low-level and bare-bone, yet extremely capable.
 
But as things stand there is no persuading other people to do it. Those other people have probably already given as much as they can justify for free without some form of material compensation.
Ok, with such an enthusiasm, I give-it up. You have convinced me.
I am only involved in community work on open source freewares. There is no fun working alone and, anyway, I'm not experienced enough with LTspice to do-it all by myself and get the best results.
Sad times where money is the last unique motivation and "material" the only value, individualism at its peak.
 
Last edited:
Version IV is absolutely fine wrt to UI. The new one is a bitch, though. Bloated with useless and buggy features, namely those 'editors' and that major screw-up with the sim command UI. Just stay away from it would be my recommendation.

I like it exactly because it is so low-level and bare-bone, yet extremely capable.

Except that the ongoing improvements in transistor models and simulator engine are only available in the current version.
 
Hi, I'm am a beginner and I don't know if the right place to ask, but I try. I'm doing simulations of an amplifier found on the internet in which I have replaced the transistors with others similar already owned. By doing square wave simulations I got poor results. Only by modifying the gain resistance R11 to 2K does the square wave adjust itself, but obviously I lose amplification power. How can I do to solve the problem? I attach diagram and graphs.
Thank you
 

Attachments

  • schema.JPG
    schema.JPG
    242.8 KB · Views: 150
  • square.JPG
    square.JPG
    98.8 KB · Views: 137
  • square mod.JPG
    square mod.JPG
    85.2 KB · Views: 136
  • fr.JPG
    fr.JPG
    70.8 KB · Views: 127
  • fr mod.JPG
    fr mod.JPG
    77.3 KB · Views: 58