Top Banner
Generating Bode Plots In PSpice and using your oscilloscope
17

Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Apr 29, 2018

Download

Documents

TrầnLiên
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Generating Bode Plots

In PSpice and using your oscilloscope

Page 2: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Bode Plots

• The magnitude of a signal as a function of frequency is the plot generated during an AC Sweep. – Note that the voltage source must be changed from

Vsin to Vac. • The magnitude is typically changed to dB where:

• Phase angles as a function of frequency will be plotted in PSpice during an AC Sweep.

• P() marco will display the phase angle of the parameter inserted [e.g., V(R2:2)]

ref

signal

V

VdB log20

Page 3: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

To Change to dB

• If your reference signal is 1V, you can double-click on the label for the curve, select DB() from the list of macros on the right of the pop-up window, and then type in the name of the signal that you would like plotted in dB.

Page 4: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Example

1. Double click on the label (boxed in green). 2. Select DB from the list of Functions or Macros 3. Type the name of the signal in the parenthesis in the Trace Expression. 4. Click OK.

Page 5: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

If the reference is not 1V or 1A

The signal should be divided by the reference signal in the Trace Expression. You can also add additional curves to be plotted. Plotting a line at -3dB may help when determining the corner frequency. This can be done using the Add Trace option under Trace toolbar.

Page 6: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

To Plot Phase Angle vs. Frequency

Page 7: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Add a Trace to the New Plot

Page 8: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Select P() in the List of Functions or Macros

Page 9: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Select Voltage or Current from the List of Simulation Output Variables

• It will appear within the paraphrases as the argument of the phase function. You can add multiple traces at once by putting a comma between each on the list at the bottom of the pop-up window. Then, click OK.

Page 10: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

To Change the x axis to Log(f)

Page 11: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Phase Angle in Degrees Vs. Frequency

The angle in phasor notation should be between -180o to +180o.

Page 12: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Phase Angle Measurement

• Two techniques using the Velleman scope – Waveform Parameters

• Measurement of relative phase to internal reference at the operating frequency of the arbitrary function generator.

– Bode Plotter • Measurement of the phase of the signal on Channel 1

with respect to the signal on Channel 2 over a frequency range specified by the user.

– Follow the instructions to make sure that the appropriate signal is used as the reference signal.

Page 13: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Waveform Parameters

Page 14: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Bode Plot

Select Phase Plot from View menu after having set the Frequency Range, Frequency Start, and other measurement parameters and then click Start to obtain the phase measurement.

Page 15: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Y-Axis Scale

The magnitude of the signal can be plotted in Volts or in dB by selecting the appropriate Vertical Scale

Page 16: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Plot of Phase Angle

To plot the phase angle at the same time that a plot of the magnitude is displayed, select Phase Plot from the View toolbar on the Bode Plotter.

Page 17: Generating Bode Plots - Virginia TechLiaB/MATLAB/Generating Bode Plots.pdf · Bode Plots •The magnitude of a signal as a function of frequency is the plot generated during an AC

Bode Plot

The solid line is the magnitude and the dashed line is the phase angle.