How do you do a Bode plot comparison with LTSpice?

Click For Summary
LTSpice users face challenges when generating Bode plots, as new simulations overwrite previous plots, hindering visual comparisons of LC circuit adjustments. Suggestions include utilizing the Stepping function to vary component values and plot multiple curves on the same graph. One workaround involves combining all schematics into a single file with renamed nodes for superimposed graphs, although this may not be practical for complex circuits. Users also discuss the potential of Monte Carlo features for optimization. Overall, exploring these options can enhance the effectiveness of circuit tuning in LTSpice.
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 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 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
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