How do you do a Bode plot comparison with LTSpice?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
9 replies · 4K views
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