1
\$\begingroup\$

How can I plot voltage gain (Vout/Vin) when Vout can have some DC offset?

\$\endgroup\$
  • 1
    \$\begingroup\$ If you want to use Vout/Vin, then you'd better use the .AC analysis, but then you don't have or need DC offsets. If you want to use it in .TRAN (which is what it looks you're after), then you'd be better using DC quantities at the input (i.e. fixed, unipolar voltage), rather than alternating. Else, if the only thing in your way is the DC, then simply subtract gain*DC from the output, or add appropiate negative sign DC at the input. \$\endgroup\$ – a concerned citizen Sep 17 '16 at 13:58
  • \$\begingroup\$ The answer is: as you would do on a piece of paper. Subtract whatever you need to subtract and be happy. But I suspect you are trying to do something odd... Are you willing to share your circuit? \$\endgroup\$ – Vladimir Cravero Sep 17 '16 at 14:09
2
\$\begingroup\$

Since you are working in a simulation why not take the easiest approach. Add a capacitor from the output and connect the other side to a large size resistor that goes to GND. Then take your reading of output AC voltage across the large size resistor.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.