How do you do a Bode plot comparison with LTSpice?

  • Thread starter Landru
  • Start date
  • #1
105
1

Main Question or Discussion Point

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 lets 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!
 

Answers and Replies

  • #2
berkeman
Mentor
56,909
6,872
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 lets 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?
 
  • #3
105
1
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.
 
  • #4
105
1
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."
 
  • #5
berkeman
Mentor
56,909
6,872
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:
 
  • #6
105
1
Yeah, works in my case. Pretty hacky though.
 
  • #7
berkeman
Mentor
56,909
6,872
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...
 
  • #8
berkeman
Mentor
56,909
6,872
Also, if you are trying to optimize something, look into using the Monte Carlo features of your Spice program...
 
  • #9
105
1
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.
 
  • #10
donpacino
Gold Member
1,439
282
There are also ways to run multiple simulations and change parameters with each sim.
 

Related Threads on How do you do a Bode plot comparison with LTSpice?

Replies
3
Views
5K
  • Last Post
Replies
12
Views
926
  • Last Post
Replies
6
Views
731
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
4
Views
6K
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
12
Views
2K
  • Last Post
Replies
1
Views
3K
Top