Author Topic: LTSpice: Plotting two different simulation traces in one plot  (Read 8480 times)

0 Members and 1 Guest are viewing this topic.

Offline mc172Topic starter

  • Frequent Contributor
  • **
  • Posts: 489
  • Country: gb
LTSpice: Plotting two different simulation traces in one plot
« on: February 02, 2020, 05:35:16 pm »
I've got a simulation in LTSpice and what I want to do is plot the output if R10 for example is 10k and also when it is 11k, on the same graph at the same time. Does anyone know if this is possible please?

I'm not doing a tolerance study so don't need to do Monte Carlo analysis, just trying to demonstrate what happens to the output when values change or a variable resistor is adjusted one way or another for example.

Thanks.
« Last Edit: February 02, 2020, 05:37:11 pm by mc172 »
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: ca
Re: LTSpice: Plotting two different simulation traces in one plot
« Reply #1 on: February 02, 2020, 05:51:34 pm »
Hi,

Use the .step command like this:

.step param Rvalue LIST 10K 11K

replace the value of the resistor you want to change with:

{Rvalue}

Nothing special about the name Rvalue, the names have to be the same.

The simulation will run as many times as you have values.

To display the legend.

[Right Click] in the waveform window

View

Select 'step legend'



Regards,

Jay_Diddy_B
 
The following users thanked this post: BravoV, SilverSolder, mc172

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: LTSpice: Plotting two different simulation traces in one plot
« Reply #2 on: February 02, 2020, 06:13:07 pm »
I've got a simulation in LTSpice and what I want to do is plot the output if R10 for example is 10k and also when it is 11k, on the same graph at the same time.
Easy. Make copy of whole circuit, in same project. Modify value of resistor in 2nd copy.
 

Offline mc172Topic starter

  • Frequent Contributor
  • **
  • Posts: 489
  • Country: gb
Re: LTSpice: Plotting two different simulation traces in one plot
« Reply #3 on: February 02, 2020, 06:32:18 pm »
Spot on. Thanks guys.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf