Chapter 6 - Oscilloscopes

Example 1 - pg 6_53

In [2]:
#Chapter-6,Example6_2,pg 6-53
#calculate the rise time
import math
#given
BW=25*10**6 #Hz
Trd=20*10**-9 #s
#calculations
Tro=0.35/BW
Trs=(Trd**2-Tro**2)**.5
#results
print"minimum rise time of pulse (ns) = ",round(Trs*10**9,2)
minimum rise time of pulse (ns) =  14.28

Example 2 - pg 6_26

In [3]:
#Chapter-6,Example6_2,pg 6-26
#calculate the bandwidth of CRO
import math
#given
Trs=17*10**-6
Trd=21*10**-6
#calculations
Tro=math.sqrt((Trd**2)-(Trs**2))
BW=0.35/Tro
#results
print"bandwidth of CRO (kHz) = ",round(BW/1000.,3)
bandwidth of CRO (kHz) =  28.389

Example 3 - pg 6_53

In [4]:
#Chapter-6,Example6_2,pg 6-53
#calculate the minimum rise time
#given
SR=200.*10**6#sampling rate
#calculations
trmin=1/SR
#results
print"minimum rise time of pulse (ns) = ",round(trmin*10**9,0)
minimum rise time of pulse (ns) =  5.0

Example 4 - pg 6_63

In [5]:
#Chapter-6,Example6_3,pg 6-63
#calculate the amplitude, rms value of voltage
#from plot 1 subdivision=0.2 units
import math
#given
pp=2+3*0.2#positive peak
np=2+3*0.2#negative peak
Vd=2*10**-3#volts per division
#calculations
Nd=pp+np#no. of divisions
Vpp=Nd*Vd
Vm=Vpp/2
Vrms=Vm/math.sqrt(2)
#results
print"peak value of voltage (mV) = ",Vm*1000
print"RMS value of voltage (mV) = ",round(Vrms*1000,4)
peak value of voltage (mV) =  5.2
RMS value of voltage (mV) =  3.677

Example 5 - pg 6_64

In [6]:
#Chapter-6,Example6_4,pg 6-64
#calculate the RMS value of voltage and frequency across resistor
#given
import math
Vd=2.
Tb=2.*10**-3#time base
Vd=2.
Nd=3.
Hd=2#horizontal occupancy
#calculations
Vpp=Nd*Vd
Vm=Vpp/2
Vrms=Vm/math.sqrt(2)
T=Tb*Hd
f=1/T
#results
print"RMS value of voltage (V) = ",round(Vrms,4)
print"frequency of voltage across resistor (Hz) = ",f
RMS value of voltage (V) =  2.1213
frequency of voltage across resistor (Hz) =  250.0

Example 6 - pg 6_67

In [7]:
#Chapter-6,Example6_5,pg 6-67
#calculate the phase difference
import math
#given
y1=8.
y2=10.
#calculation
phi=math.asin(y1/y2)#phase difference
phi=phi*(180/math.pi)
#results
print"phase difference (deg) = ",round(phi,2)
phase difference (deg) =  53.13

Example 7 - pg 6_69

In [9]:
#Chapter-6,Example6_6,pg 6-69
#calculate the vertical signal frequency
import math
#given
Nv=2.
Nh=5.
fh=1*10**3
#calculations
fv=(5./2)*fh#(fv/fh)=(Nh/Nv)=(5/2)
#results
print"vertical signal frequency (kHz) = ",fv/1000.
vertical signal frequency (kHz) =  2.5