How do you do a Bode plot comparison with LTSpice?

Click For Summary

Discussion Overview

The discussion revolves around using LTSpice for generating Bode plots of LC circuits and the challenges faced in visually comparing multiple simulations. Participants explore methods to retain previous plots for comparison and discuss various features of LTSpice that may assist in this process.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses difficulty in comparing Bode plots in LTSpice due to previous plots being overwritten during simulations.
  • Another participant suggests using the Stepping function to vary component values and potentially display multiple curves on the same plot.
  • A workaround is proposed involving combining all schematics into one large schematic with different nodes to superimpose graphs.
  • Some participants note that while the workaround may work for simpler circuits, it could be impractical for more complex designs.
  • There is mention of using Monte Carlo features for optimization, although one participant indicates they are unfamiliar with LTSpice's specific options.
  • Another participant acknowledges finding the Stepping options and notes its convenience compared to other methods for comparison.
  • Participants discuss the possibility of running multiple simulations with varying parameters to aid in analysis.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for comparing Bode plots in LTSpice, with multiple competing approaches and opinions presented throughout the discussion.

Contextual Notes

Some participants mention limitations regarding the practicality of certain solutions for complex circuits and the varying capabilities of different SPICE programs.

Landru
Messages
107
Reaction score
1
I'm trying to use LTSpice in order to fine tune LC circuits, but a road block I've hit is that when I run the simulation and generate a bode plot, the previous plot is overwritten, so I can't visually compare the effects of the L C changes. Some graphing programs have a function that let's you save a plot line, so that subsequent plottings can be visually seen against a previous plot. Does LTSpice have this functionality?

Thanks a lot!
 
Engineering news on Phys.org
Landru said:
I'm trying to use LTSpice in order to fine tune LC circuits, but a road block I've hit is that when I run the simulation and generate a bode plot, the previous plot is overwritten, so I can't visually compare the effects of the L C changes. Some graphing programs have a function that let's you save a plot line, so that subsequent plottings can be visually seen against a previous plot. Does LTSpice have this functionality?

Thanks a lot!
What are you varying between your runs? Can you use the Stepping function to step component values to get all the curves on the same plot?
 
berkeman said:
What are you varying between your runs? Can you use the Stepping function to step component values to get all the curves on the same plot?

I change the capacitance, inductance and resistances to see how it changes the Q and the resonant peak. All that is going well, it's just that short of making screen shots, I'm not sure how to compare differences from test run to test run.

I'll looking into stepping and see if that would do it.
 
Here's one solution I found on the 'net in case anyone comes across this in a google search:

"I have figured out an asinine way to work around this. Put all schematics into one large schematic with all different/renamed nodes. Now all graphs can be superimposed."
 
Landru said:
Put all schematics into one large schematic with all different/renamed nodes. Now all graphs can be superimposed."
LOL. That might work for small circuits, but not for more complex ones. Unless you're running your SPICE program on a supercomputer... :smile:
 
Yeah, works in my case. Pretty hacky though.
 
Were you able to find the Stepping options? I use Micro-Cap, not LTSpice, so I don't know what your options are for stepping...
 
Also, if you are trying to optimize something, look into using the Monte Carlo features of your Spice program...
 
berkeman said:
Were you able to find the Stepping options? I use Micro-Cap, not LTSpice, so I don't know what your options are for stepping...

Yes! In some ways that's even more convenient than what I had in mind, although it's not quite as good at "quick and dirty" comparisons, since it's more like a macro and not like a simple "screen grab". Thanks for tipping me off to that feature.
 
  • Like
Likes   Reactions: berkeman
  • #10
There are also ways to run multiple simulations and change parameters with each sim.
 

Similar threads

Replies
18
Views
3K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 40 ·
2
Replies
40
Views
8K
  • · Replies 1 ·
Replies
1
Views
12K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
7K