









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Controller implemented with analog electronics (OP AMPS)
Analog Inputs and outputs
Continuous signals converted to digital values
Controller - Implemented with microprocessor
System control variable modified by mathematical functions + - x
/
Result converted to analog signal by digital-to-analog conversion
Technical Problems of Digital Conversion
Most signals continuous in nature
Need Analog-to-Digital (A/D) Conversion
1.) sample and hold
2.) convert to number (binary)
Need high speed sampling for rapidly changing
signals
Precision of converted value. Infinite number
values mapped to a finite number of bits
8 bits 256 values
12 bits 4096 values
20 bits 1 M values approx..
Modeling of System Different - signals only exist in
controller at sample time
Must reconstruct most signals to analog for output
Need DAC (digital-to-analog converters)
Real-time applications difficult in high speed applications
Representation of Signals
Analog signal - defined at every point of independent variable
For most physical signal independent variable is time
Examples
s ( )t
. 5 sin
. 5 t
π
3
. 2 cos
. 6 t
. 2 π
3
Real life signals: Music, process sensor outputs
Analog representation - photograph of analog oscilloscope
traces.
s
s
s
equation
Example: Plot the s(t) function at two different sampling
rates over a 10 sec interval for sampling periods
s
= 0.05 and T s
= 0.5 sec
Mathcad method t := 0,.05..10 s
s ( )t
. 5 sin
. 5 t
π
3
. 2 cos
. 6 t
. 2 π
3
0 2 4 6 8 10 12
10
5
0
5
10
s( )t
t
At T s
= 0.05 plot appears smooth and approximates
actual function.
Use Matlab code to generate the plot for the 0.05 and 0.5 s
sampling intervals and plot on the same figure
Notation for Continuous and Sampled Signals
Continuous signal or functions s(t)
Sampled signals or functions s [ n ] = s (nT
s
Where n = integer ......-3, -2, -1, 0, 1, 2, 3.......
System Representations 1-D continuous signals
Analog input x(t) Analog output y(t)
Block diagram representation
Example: y(t) = [x(t)]
2 squaring function. For analog
systems need a circuit that can square input
2
% define the time interval
f = 440;
Tp = 1/f;
% plot three periods
% the sampling rate is 5000 samples/sec
% Ts = 1/(sampling rate)
Ts = 1/5000;
t3=0:Ts:3*Tp;
% define the function
s3=10cos(2pi440t3-0.4*pi);
% use the stem plot function to plot the values
stem(s3);
xlabel('Index Variable: n'); %label the x-axis
ylabel('s[n]'); % label the y-axis
title('Sampled Time Signal-Sampling Rate 5000/sec');
grid on;
s
s
s
0 5 10 15 20 25 30 35
0
2
4
6
8
10
Index V ariable: n
s[n]
S am pled T im e S ignal-S am pling R ate 5000/s ec
v s
( t )
. 1 sin ( )
... 2 π 50 t
v c
( t )
. 1 sin ( )
... 2 π 1000 t
v am
( t )
v s
( t ) v c
( t)
0 0.005 0.01 0.01 0.02 0.025 0.
1
0
1
v am
( )t
v s
( )t
t
v s
( t )
. 1 sin ( )
... 2 π 50 t sin ( ) ... 2 π 25 t
c
( t )
. 1 sin ( )
... 2 π 1000 t
0 0.02 0.04 0.06 0.
2
0
2
v am
( )t
v s
( )t
t
sin( ) sin( ) =
1
2
α ⋅ β cos( α − β ) − cos(α +β)
1
2
s ( t )
. sin ( )
... 2 π 1000 t ( sin ( ) ) ... 2 π 50 t sin ( ) ... 2 π 25 t
s( t)
sin ( )
2 π 1000 t sin ( )
2 π 50 t
sin ( )
2 π 1000 t sin ( )
2 π 25 t
s( )t
...
.
1
2
cos( )
... 2 π ( 1000 50 ) t
.
1
2
cos( )
... 2 π ( 1000 50 ) t
.
1
2
cos( )
... 2 π ( 1000 25 ) t
.
1
2
cos( )
... 2 π ( 1000 25 ) t
s( )t
cos( )
2 π 950 t
cos( )
2 π 1050 t
cos( )
2 π 975 t
cos( )
2 π 1025 t
s( )t
( cos( ) )
2 π 950 t cos( )
2 π 975 t
( cos( ) )
2 π 1050 t cos( )
2 π 1025 t
c
sensor
physical
parameter
signal
conditioner
sample
and hold
to ADC
Data Sampling Signals
Analog Input Signal
time
voltage
v s
( )t
t
Pulse generator output (ideal pulse width = 0)
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.
0
1
Data Sampling Pulses
time
Amplitude
p( )t
t
Data Sampling signals (cont.)
Pulse magnitude is multiplied with input signal value at each
sampling instant to give an amplitude modulated pulse
sequence.
0 5 1 0 1 5 2 0 2 5
-1. 5
-0. 5
0
1
2
I n d e p e d e n t V a r ia b l e : t i m e , t , n T s
V(t)
P u ls e s M u lt ip l ie d b y I n p u t
Signal after leaving the sample and hold circuit.
0 5 1 0 1 5 2 0 2 5
0
1
2
I n d e p e d e n t V a r i a b l e : t i m e , t , n T s
V(t)
S a m p l e a n d H o l d O u t p u t