And yet another way to simulate a variable resistor that doesn't require a pot.
It uses the Spice directive
.step function to vary the resistance from 10 ohms to 1k ohms in 10 ohm steps (look in the Help file for
.step).
(Note that R in the resistor definition must be enclosed with curly brackets).
The
DC operating point simulation command then displays the output voltage versus the change in resistance.
Another advantage of this technique is that it directly plots the output voltage versus the resistance change.
View attachment 99077