generating bode plots

17
Generating Bode Plots In PSpice and using your oscilloscope

Upload: others

Post on 09-Feb-2022

20 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Generating Bode Plots

Generating Bode Plots

In PSpice and using your oscilloscope

Page 2: Generating Bode Plots

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

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

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

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

To Plot Phase Angle vs. Frequency

Page 7: Generating Bode Plots

Add a Trace to the New Plot

Page 8: Generating Bode Plots

Select P() in the List of Functions or Macros

Page 9: Generating Bode Plots

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

To Change the x axis to Log(f)

Page 11: Generating Bode Plots

Phase Angle in Degrees Vs. Frequency

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

Page 12: Generating Bode Plots

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

Waveform Parameters

Page 14: Generating Bode Plots

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

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

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

Bode Plot

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