Está en la página 1de 27

Lab 7: AC Analysis

LAB EXPERIMENTS USING NI ELVIS II AND NI MULTISIM


Alexander Ganago Jason Lee Sleight
University of Michigan Ann Arbor

Lab 7 AC Analysis

2010 A. Ganago

Introduction Page 1 of 10

Lab 7: AC Analysis

Goals for Lab 7


Learn about: Calculations of the responses of a linear circuit to sinusoidal voltages using phasors Conversion from time-dependent sinusoids to phasors and from phasors to timedependent sinusoids Measurements of time delays in the lab and conversion of the results to phase shift angles at various frequencies The role of the capacitors and inductors impedances in phase shifts

Learn how to: Measure the phase shift between the input and output voltages and compare your lab data to pre-lab (and post-lab) calculations of the same phase shifts Add sinusoidal output voltages in order to reproduce the sinusoidal input voltage, thus verify KVL.

Measure in the lab: Amplitudes of sinusoidal input and output voltages in several circuits, as well as the time delays between the input and output

Calculate in the post-lab: Phase shifts between the input and output sinusoidal voltages in several circuits, from the time delays, which you measured in the lab Percentage differences between the amplitudes of sinusoidal input and output voltages in several circuits: (a) calculated from theory, (b) simulated with Multisim, and (c) measured in the lab Percentage differences between the phase angles of sinusoidal output voltages with respect to the input voltages in several circuits: (a) calculated from theory, (b) simulated with Multisim, and (c) measured in the lab

Explain in the post-lab: The possible sources of error in measurements and causes of the disagreement between theory and lab data The effects of circuit modifications on the amplitudes and phase angles of output voltages.

2010 A. Ganago

Introduction Page 2 of 10

Lab 7: AC Analysis

Introduction
If a circuit contains sources of (co)sinusoidal voltages and currents, as well as resistors, inductors, capacitors, op amps, and other linear elements, then under certain conditions we can apply the extended form of Ohms law
V = IZ

to inductors and capacitors. In other words, instead of resistance R (in the usual form of Ohms law), we can write impedance Z and use linear algebraic equations instead of differential equations. To make this great simplification of circuit analysis legitimate, we require that: (1) all sources must be sinusoidal, at the same frequency (2) all circuit elements must be linear, and (3) the circuit should have reached its sinusoidal steady-state condition. Condition (3) simply means that, after a voltage or current applied to the circuit was changed, you have to wait till the transient responses die out. Exactly how long do you have to wait? From what you learned about transients in Labs 5 and 6, recall that, after 5 the time interval equal to 5 (where is the time constant of the circuit response) or (where is the damping factor), the amplitude of transients falls below 1% of its initial 5 value; therefore, after 5 or , the error of using the simplification is less than 1%.

The simplification we have in mind is called phasor analysis (do not mistake it for the handy weapon used by the Star Trek characters, which is called phaser). The big idea is that, under the conditions listed above, sinusoidal input at frequency , peak voltage Vmax, in and phase angle in

Vin (t) = Vmax, in cos( t + in )


produces a sinusoidal output

Vout (t) = Vmax, out cos( t + out )


at the same frequency but with a different amplitude Vmax, out and phase out . We can avoid doing tedious trigonometric calculations by virtue of Eulers equation

e j = cos( ) + j sin( ) , where j = 1

2010 A. Ganago

Introduction Page 3 of 10

Lab 7: AC Analysis so that

Vin (t) = Vmax, in cos( t + in ) = Vmax, in Re{e j( t +in ) } = Vmax, in Re{e j(in ) } Re{e j( t ) }
and

Vout (t ) = Vmax, out cos( t + out ) = Vmax, out Re{e j( t +out ) } = Vmax, in Re{e j(out ) } Re{e j( t) }
Note that the last factor Re{e j( t) } is the same for the input and the output, thus we may drop jt in intermediary calculations and use the shortcut notation, which includes the magnitude Vmax, in and the phase angle in :

Vin = Vmax, in in
Similarly, for the output voltage:

Vout = Vmax, out out


The two latter equations define the phasors for the input and output voltage: each carries the information about the amplitude and the phase of the (co)sinusoidal voltage. Note that we write equations with a cosine function for the sake of simplicity: here, the real part of complex voltage is the real voltage, which we measure in the lab. Amplitudes of sinusoidal signals are already familiar, but their phases are new to you.

Figure 7-1. Phase shift of cosine waves (1). The solid line shows the reference voltage. The dashed line shows another voltage, which leads by t.

2010 A. Ganago

Introduction Page 4 of 10

Lab 7: AC Analysis

Figure 7-1 shows two co-sinusoidal voltages; the solid line represents the reference (or input) voltage, which reaches its maximum at time t = 0. Recall that the cosine function is maximal at zero (we consider one period from 180 to +180 degrees, or from to +); therefore, for a cosine with phase angle , we obtain:
cos( t + ) = cos(0 + ) = cos(0) ,

Assuming that the reference voltage reaches its maximum at time = 0, as shown in Figure 7-1, we get its phase angle as = 0 . The dashed line in Figure 7-1 shows the output voltage, which reaches its maximum before the reference voltage does; in other words, the output leads by t. In the lab, you will measure t in s; for comparison with theory, you will have to express the delay between the sinusoids as a phase angle shift. The relationship is: cos( t + ) = cos(0) t + = 0 = + t t = +

If you use the frequency f is in hertz, which is more convenient in the lab, rewrite the latter equation as the following:

t = +

2 f

The frequency , which is measured in radians per second, remains more convenient for theoretical calculations. The positive sign emphasizes that the output waveforms leads. Also note that the phase angle is expressed in radians. To obtain the phase shift in degrees, use the fact that
2 = 360

2010 A. Ganago

Introduction Page 5 of 10

Lab 7: AC Analysis

Figure 7-2. Phase shift of cosine waves (2). The solid line shows the reference, or input voltage. The dashed line shows the output voltage, which lags by t. The other important case of phase shift is shown in Figure 7-2. Here the reference voltage has its peak at zero time, as before, but the other voltage reaches its maximum later, at the time t = +t. In other words, the output lags by t. Therefore the phase angle of the reference signal is zero, and the phase angle of the output signal is related to its time delay as the following:

t =

= 2 f

Here the negative sign shows that the second signal lags. Again, the angle is in radians. In lab measurements and data analysis, when you are asked to calculate the phase angle from the measured time delay t, remember to take into account the signal frequency, because

= 2 f t
For example, time delay of 1 s, at 1 kHz corresponds to the phase angle of

= 2 f t = 2 (103 s 1 ) (106 s ) = 2 103 rad = 360 103 degrees = 0.36 degrees


which may be negligible but, at 100 kHz, the same delay corresponds to 36 degrees, which must be taken into account.

2010 A. Ganago

Introduction Page 6 of 10

Lab 7: AC Analysis Note that all phase angles measured in the lab are relative, with respect to the reference (input) voltage. Use cursors on the oscilloscope screen and align the first one with the peak of the input voltage (you should have learned how to find out which signal is the input). Then align the second cursor with the peak of the output signal and read out the time delay t. Make sure that the sign of t agrees with your intuitive expectations (refer to Figures 7-1 and 7-2). Do calculations to translate t into the phase angle as shown above. Now, let us take a closer look at the Ohms law
V = IZ

Here, both the voltage V and the current I are phasors,

V = V V I = I I
carrying information about the amplitude (or magnitude) and phase of their signals. Impedance Z is a complex number (in special cases, it may be a real number),

Z = Z Z
which has its magnitude Z and phase angle Z . Using the rules of complex algebra, the Ohms law equation can be rewritten as
V = IZ V = I + Z

The impedance of an inductor equals

ZL = j L ZL = L ZL = +90
The impedance of a capacitor equals

2010 A. Ganago

Introduction Page 7 of 10

Lab 7: AC Analysis ZC = 1

j C 1 ZC = C ZC = 90 The impedance of a resistor is the real number equal to the resistance:

ZR = R ZR = R ZR = 0
Therefore, the phase shift of the current relative to the voltage always equals +90 o for the inductor and always equals 90 o for the capacitor. For a resistor, there is always zero phase shift between the voltage and the current.
P P P P

For an entire circuit, the phase shift can be anything between 180 o and +180 o .
P P P P

In phasor form, KCL and KVL are valid; calculations require both magnitudes and phase angles. In a series RLC circuit (see Figure 7-3), the current I through all circuit elementsthe source, the resistor, the inductor and the capacitorwill be the same, according to KCL. Since the impedances of the resistor, inductor, and capacitor include different phase shifts, the voltages across these elements will also be shifted with respect to the input voltage. In a series RLC circuit, you can obtain the current I from your measurement of the resistor voltage V R because the phase shift between I and VR is zero.
B B

Figure 7-3. Series RLC circuit.

2010 A. Ganago

Introduction Page 8 of 10

Lab 7: AC Analysis In addition to experiments on the series RLC circuit, in this lab you will also work on a more complicated circuit (see Figure 7-4), which is similar to the phase shifter discussed in your textbook ???ERROR??? (Example 7-11, pages 335 336).

Figure 7-4. Phase-shifting RC ladder circuit. The input sinusoidal voltage VIN comes from the function generator; the output voltage can be measured at any of the 3 nodes VO,1 , VO, 2 , and VO, 3 . In your simulations and lab data, you will observe that the phase angle (referenced to the input voltage) progressively increases from VO,1 to VO, 2 , and to VO, 3 . If you are interested in Explorations (for extra credit), you will study three modifications of the phase-shifting circuit shown below. Each of these modifications affects the phase shifts of output voltages with respect to the input.

2010 A. Ganago

Introduction Page 9 of 10

Lab 7: AC Analysis

2010 A. Ganago

Introduction Page 10 of 10

Lab 7: AC Analysis

Pre-Lab: 1. Phase Shift Conversions


Complete the following table: f 0 (Hz)
B B

0 (rad/s)
B B

t shift (ms)
B B

Angle ()

Angle (rad)

50 100 500 1,000 1,600 10,000 Show your work for the f 0 = 1,600 Hz case.
B B

5 45 0.375 90 /10

2010 A. Ganago

Pre-Lab Page 1 of 3

Lab 7: AC Analysis

2. RLC Multisim Simulations


Use the following circuit for your simulation:

R = 1 k C = 1 F L = 10 mH Use a 1 V PPK , 100 Hz sine wave with 0 V DC offset for the input signal. This frequency 1 is below the resonance < 0 = LC
B B

A. Measure V C
B B B

Use V C as the output signal. Measure and record the V PPK and phase shift of the output signal (clearly show the units).
B B

B. Measure V R
B B B

Use V R as the output signal. Measure and record the V PPK and phase shift of the output signal (clearly show the units).
B B

C. Measure V L
B B B

Use V L as the output signal. Measure and record the V PPK and phase shift of the output signal (clearly show the units).
B B

D. Repeat parts 2.A through 2.C, this time using a 1 V PPK , 1.6 kHz sine wave with 0 V DC offset as the input signal. This frequency is near the
B B

resonance = 0 =

1 LC
Pre-Lab Page 2 of 3

2010 A. Ganago

Lab 7: AC Analysis

3. RC Ladder Simulations
Use the following circuit for your simulation:

Use: R = 1 k C = 1 F Use a 1 V PPK , 200 Hz sine wave with 0 V DC offset as the input signal. Use the 4 Channel Oscilloscope tool to view the input and all three output signals simultaneously.
B B

Adjust the Oscilloscope parameters so that you can clearly view the waveforms. Use the Cursors to fill in the following table: Signal V IN
B B B

V PPK (mV)
B B

Shift (ms) 0

Shift (rad) 0

V O, 1 V O, 2
B B

V OUT, 3

BBB

Create a printout which clearly displays the waveforms. (Pre-Lab Printout #1)

2010 A. Ganago

Pre-Lab Page 3 of 3

Lab 7: AC Analysis

In-Lab Work
Part 1: Frequency < 0
B B

Part 1.1 V C
B

Turn on the NI ELVIS II. Build the following circuit:

Use: C = 1 F L = 10 mH R = 1 k Measure V IN on AI0 and V C on AI1.


B B B B

From the NI ELVISmx Instrument Launcher, launch the FGEN and OSCOPE. Power on the PB. On the FGEN VI, create a 100 Hz, 1 V PPK sine wave with 0 V DC offset.
B B

Adjust the parameters on the OSCOPE so that you can clearly view the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 1 = ______ s
B B

Create a printout which clearly shows the signals. (In-Lab Printout #1) Power off the PB.

2010 A. Ganago

In-Lab Page 1 of 10

Lab 7: AC Analysis

Part 1.2 V L
B B B

Continue to use the same circuit from Part 1.1. Measure V IN on AI0 and V L on AI1.
B B

Power on the PB. Adjust the parameters on the OSCOPE so that you can clearly view the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 2 = ______ s
B B

Create a printout which clearly shows the signals. (In-Lab Printout #2)

2010 A. Ganago

In-Lab Page 2 of 10

Lab 7: AC Analysis

Part 1.3 V R
B B B

Continue to use the same circuit from Part 1.1. Measure V IN on AI0 and V R on AI1.
B B

Power on the PB. Adjust the parameters on the OSCOPE so that you can clearly view the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 3 = ______ s
B B

Create a printout which clearly shows the signals. (In-Lab Printout #3)

2010 A. Ganago

In-Lab Page 3 of 10

Lab 7: AC Analysis

Part 2: Frequency Near the Resonance


Part 2.1 V C
B

0 =

1 LC

Continue to use the same circuit from Part 1. Measure V IN on AI0 and V C on AI1.
B B B B

Power on the PB. On the FGEN VI, create a 1.6 kHz, 1 V PPK sine wave with 0 V DC offset.
B B

Adjust the parameters on the OSCOPE so that you can clearly view the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 4 = ______ s
B B

Create a printout which clearly shows the signals. (In-Lab Printout #4) Power off the PB.

2010 A. Ganago

In-Lab Page 4 of 10

Lab 7: AC Analysis

Part 2.2 V L
B B B

Continue to use the same circuit from Part 2.1. Measure V IN on AI0 and V L on AI1.
B B

Power on the PB. Adjust the parameters on the OSCOPE so that you can clearly view the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 5 = ______ s
B B

Create a printout which clearly shows the signals. (In-Lab Printout #5)

2010 A. Ganago

In-Lab Page 5 of 10

Lab 7: AC Analysis

Part 2.3 V R
B B B

Continue to use the same circuit from Part 2.1. Measure V IN on AI0 and V R on AI1.
B B

Power on the PB. Adjust the parameters on the OSCOPE so that you can clearly view the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 6 = ______ s
B B

Create a printout which clearly shows the signals. (In-Lab Printout #6)

2010 A. Ganago

In-Lab Page 6 of 10

Lab 7: AC Analysis

Part 3: RC Ladder
Build the following circuit:

Use: R = 1 k C = 1 F Measure V IN on AI0 and V OUT, 1 on AI1.


B B B B

Power on the PB. On the FGEN, create a 1 V PPK , 200 Hz sine wave with 0 V DC offset.
B B

Adjust the settings on the OSCOPE so that you can clearly observe the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 7 = ______ s
B B

Create a printout which clearly shows the signals. (In-Lab Printout #7) Power off the PB. Measure V IN on AI0 and V OUT, 2 on AI1.
B B B B

Adjust the settings on the OSCOPE so that you can clearly observe the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 8 = ______ s
B B

Create a printout which clearly shows the signals. (In-Lab Printout #8) Power off the PB. Measure V IN on AI0 and V OUT, 3 on AI1.
B B B B

Adjust the settings on the OSCOPE so that you can clearly observe the waveforms. Use the cursors to measure the phase shift between the input and output signals. t shift, 9 = ______ s
B B

2010 A. Ganago

In-Lab Page 7 of 10

Lab 7: AC Analysis

Create a printout which clearly shows the signals. (In-Lab Printout #9) Power off the PB. This is the end of the required part of this lab. If you wish to do Explorations for extra credit, turn to the next page. If you wish to finish the lab work now, please power off the NI ELVIS II and clean up your workstation.

2010 A. Ganago

In-Lab Page 8 of 10

Lab 7: AC Analysis

Explorations for Extra Credit


Repeat Part 3 for each of the following modifications:

2010 A. Ganago

In-Lab Page 9 of 10

Lab 7: AC Analysis

Record the time shift of each output signal for each case. And create a printout which clearly displays the waveforms. Modification #1: t shift, 10 = ______ s
B B

(In-Lab Printout #10) (In-Lab Printout #11) (In-Lab Printout #12) (In-Lab Printout #13) (In-Lab Printout #14) (In-Lab Printout #15) (In-Lab Printout #16) (In-Lab Printout #17) (In-Lab Printout #18)

t shift, 11 = ______ s
B B

t shift, 12 = ______ s
B B

Modification #2: t shift, 13 = ______ s


B B

t shift, 14 = ______ s
B B

t shift, 15 = ______ s
B B

Modification #3: t shift, 16 = ______ s


B B

t shift, 17 = ______ s
B B

t shift, 18 = ______ s
B B

This is the end of the lab. Please power off the NI ELVIS II and clean up your workstation.

2010 A. Ganago

In-Lab Page 10 of 10

Lab 7: AC Analysis

Post-Lab
1. RLC circuit (frequency
< 0 =
1 ) LC

A. Discuss the agreement/disagreement between your simulation (Pre-Lab 2, A) and


your experimental results (In-Lab Printout #1) for the amplitude and phase shift of VC.
B B

B. Discuss the agreement/disagreement between your simulation (Pre-Lab 2, B) and


your experimental results (In-Lab Printout #2) for the amplitude and phase shift of VL.
B B

C. Discuss the agreement/disagreement between your simulation (Pre-Lab 2, C) and


your experimental results (In-Lab Printout #3) for the amplitude and phase shift of VR.
B B

D. Using MATLAB, MathScript, or Excel software along with the data you collected
in the lab, create a printout (Post-Lab Printout #1) which shows: each of the waveforms (V IN , V C , V L , and V R ) and a new waveform which shows their sum,
B B B B B B B B

V SUM = V C + V L + V R .
B B B B B B B B

From KVL, one expects to obtain V SUM = V C + V L + V R = V IN


B B B B B B B B B B

Make a printout (Post-Lab Printout #2) that shows both V SUM and V IN .
B B B B

Discuss whether your results support KVL or disagree with KVL.

E. From your lab data for V R , and using R = 1 k, derive the equation for the
B B

sinusoidal current, I, in the circuit as a function of time.

F. From the equation for I derived in Part 1.E above, and using C = 1 F and
L = 10 mH, and frequency equal to 100 Hz, derive the equation for the sinusoidal voltages V C and V L in the circuit as functions of time. Discuss their agreement/disagreement with both your lab data and your pre-lab simulations.
B B B B

Continued on the next page.

2010 A. Ganago

Post-Lab Page 1 of 4

Lab 7: AC Analysis

Post-Lab (continued)
2. RLC Circuit (Frequency Near the Resonance
0 =
1 LC

A. Discuss the agreement/disagreement between your simulation (Pre-Lab 2, D) and


your experimental results (In-Lab Printout #4) for the amplitude and phase shift of VC.
B B

B. Discuss the agreement/disagreement between your simulation (Pre-Lab 2, D) and


your experimental results (In-Lab Printout #5) for the amplitude and phase shift of VL.
B B

C. Discuss the agreement/disagreement between your simulation (Pre-Lab 2, D) and


your experimental results (In-Lab Printout #6) for the amplitude and phase shift of VR.
B B

D. Using MATLAB, MathScript, or Excel software along with the data you collected
in the lab, create a printout (Post-Lab Printout #3) which shows: each of the waveforms (V IN , V C , V L , and V R ) and a new waveform which shows their sum,
B B B B B B B B

V SUM = V C + V L + V R .
B B B B B B B B

From KVL, one expects to obtain V SUM = V C + V L + V R = V IN


B B B B B B B B B B

Make a printout (Post-Lab Printout #4) that shows both V SUM and V IN .
B B B B

Discuss whether your results support KVL or disagree with KVL.

E. From your lab data for V R , and using R = 1 k, derive the equation for the
B B

sinusoidal current, I, in the circuit as a function of time.

F. From the equation for I derived in K above, and using C = 1 F and L = 10 mH,
and frequency equal to 100 Hz, derive the equation for the sinusoidal voltages V C and V L in the circuit as functions of time. Discuss their agreement/disagreement with both your lab data and your pre-lab simulations.
B B B B

Continued on the next page.

2010 A. Ganago

Post-Lab Page 2 of 4

Lab 7: AC Analysis

Post-Lab (continued)
3. RC Ladder Circuit
A. Discuss the agreement/disagreement between your simulation (Pre-Lab Part 3, Pre-Lab Printout #1) and your experimental results (In-Lab Printout #7) for the amplitude and phase shift of V OUT, 1 .
B B

B. Discuss the agreement/disagreement between your simulation (Pre-Lab Part 3, Pre-Lab Printout #1) and your experimental results (In-Lab Printout #8) for the amplitude and phase shift of V OUT, 2 .
B B

C. Discuss the agreement/disagreement between your simulation (Pre-Lab Part 3, Pre-Lab Printout #1) and your experimental results (In-Lab Printout #9) for the amplitude and phase shift of V OUT, 3 .
B B

This is the end of the required Post-Lab work. If you did Explorations (for extra credit), continue the Post-Lab below.

4. Explorations (for extra credit): Modifications of the RC Ladder Circuit


A. In Modification #1, you added a second capacitor between the source (function generator) and the node V0,11 . Discuss the effects of this additional capacitance in the circuit on the amplitudes and phases of the output voltages V0,11 , V0,21 , and
V0,31 relative to the unmodified circuit.

B. In Modification #1, you did not change anything between the node V0,11 and the nodes V0,21 and V0,31 . Explain why the output voltages V0,21 and V0,31 were affected by this modification. C. Run a Multisim simulation of Modification #1, make a printout that shows the output voltages V0,11 , V0,21 , and V0,31 (Post-Lab Printout #5) and compare it with your in-lab data.

Continued on the next page.

2010 A. Ganago

Post-Lab Page 3 of 4

Lab 7: AC Analysis

Post-Lab (continued)
Explorations (for extra credit) (continued)
D. In Modification #2, you added a capacitor between the node V0,12 and the node
V0,22 . Discuss the effects of this additional capacitance in the circuit on the

amplitudes and phases of the output voltages V0,12 , V0,22 , and V0,32 relative to the Modification #1 circuit. E. In Modification #2, you did not change anything between the function generator and the node V0,12 ; you did not change anything between the nodes V0,22 and
V0,32 . Explain why the output voltages V0,12 and V0,32 were affected by this

modification. F. Run a Multisim simulation of Modification #2, make a printout that shows the output voltages V0,12 , V0,22 , and V0,32 (Post-Lab Printout #6) and compare it with your in-lab data. G. In Modification #3, you added a capacitor between the node V0,23 and the node
V0,33 . Discuss the effects of this additional capacitance in the circuit on the

amplitudes and phases of the output voltages V0,13 , V0,23 , and V0,33 relative to the Modification #2 circuit. H. In Modification #3, you did not change anything between the function generator and the node V0,13 ; you did not change anything between the nodes V0,13 and
V0,23 . Explain why the output voltages V0,13 and V0,23 were affected by this

modification. I. Run a Multisim simulation of Modification #3, make a printout that shows the output voltages V0,13 , V0,23 , and V0,33 (Post-Lab Printout #7) and compare it with your in-lab data.

2010 A. Ganago

Post-Lab Page 4 of 4

También podría gustarte