Sampled Systems
Introduction
Goals
Some Sampled System Examples
Getting Transfer Functions From Difference Equations
Transfer Functions For Higher Order Systems
System Performance
You are at: Basic Concepts - Background From Linear Systems/Transforms - Z-Transforms - Introduction
Click here to return to the Table of Contents

How Do Sampled Systems Arise?

        The world is full of systems that we see as continuous.


Goals For This Lesson

        There's more to these systems. In every case on the previous page, the signal that was discussed eventually gets measured and converted to a digital signal - a sequence of digitally represented numbers - then gets processed and the information gets used. That leads us to some statements of what you need to know about that process.

  Given a linear system with a sampled output,
  Be able to describe the system mathematically in the Z-domain given an s-domain transfer function.
Your general goal is:
Given a system in which there is conversion between analog and digital representations - in both directions,
  Be able to determine system models that will permit you to predict response.
        The systems mentioned above are all systems that generate continuous signals. But they have something else in common. All of those signals are digitized after they are measured, and the digitized signals have these features.         Something else that is important is that after being processed, most of these signals are then converted back into analog signals in the analog world.         In every one of these systems there is a constant conversion between signal forms.  You may have an analog signal that is converted to a digital signal.  Then some processing computations may be done on that information.  However, eventually the signal will be converted back to an analog signal to perform some function in the real/analog world.
Some Sampled System Examples

        There are at least two distinct things that happen that cause us to need to use sampled system methods, including the Z-transform.

         In both of these cases, when they arise you will need to use Z-transform methods to analyze the system so that you can predict system behavior.

You have two problems here.

 Next, we'll look at a simple prototype system - an example of a computer driving a system.

        The critical thing that happens here is that the analog system acts upon the stepped output from the D/A.  We need to consider what happens there.

        Here's the system again.

Finally, we reach a very interesting conclusion.

        Even though we understand that concept intellectually, it's better if we see how the input and output occur.  Below, there's an opportunity to see how a sequence of steps goes through a system like the one below.
G(s) = 1/(s + 1).


 Now, the trick is to get a mathematical expression that relates the following:         For a first order system, that's not a difficult task, and we'll take that up next.  To get the mathematical expression we want, we need a few definitions.         Then, the expression that relates all of these is given by the following:

yk+1.= e-(T/t)yk+ (1 - e-(T/t))uk

 The expression for the output is consistent with what we know from linear systems theory.

yk+1 = e-(T/t)yk+ (1 - e-(T/t)))uk

        Now, let us simplify this a little so that we don't get bogged down in algebra in our analysis.


        This can be Z-transformed to get:

zY[z] = aY[z] + (1-a)U[z]

    This can be solved for the sampled transfer function:

(Y[z]/U[z]) = G[z] = (1 - a)/(z -a)

        This is an interesting result.

        The transition from the analog system to the equivalent sampled system is not too difficult then, at least for a first order linear system.  Some obvious questions remain.         Clearly, you need more work in this area, and we'll take that up in another lesson.

Getting Transfer Functions From Difference Equations

        Sampled systems are described by difference equations - in contrast with continuous systems that are described by differential equations.  However, just as in continuous systems, there are advantages to working with transfer function descriptions.  In this section we will look at the process of getting a transfer function from a system that is described by a difference equation.

        Let's first take a first order difference equation.  Here is a simple first order difference equation.

yk+1 = ayk + buk+1

We can Z-transform this difference equation and get a transfer function for the system that is described by the difference equation.  Do that now.

zY[z] = aY[z] +  bU[z]

We can solve for the ratio of the output transform, Y[z], in terms of the input transform, U[z].

Y[z]/U[z] = b/(z - a)

        Now, note the features of the transfer function we found.

z = a
yk+1 = ayk + buk+1

        There are other features of this transfer function that we can see, but we need to take some time with that.  One important feature is the DC gain!

        We have come to use the concept of DC gain in continuous systems often.  That concept can be extended to the transfer function we have for our first order sampled system.  Let's look at what we have:

Y[z]/U[z] =   G[z] = b/(z - a)
U[z] = z/(z - 1)
Y[z] = U[z]G[z] = [z/(z - 1)]b/(z - a)
= b/(1 - a) and that's the DC Gain because the input was a unit step!
        We can generalize this result, and we will need to do that for more complex transfer functions.  In general we will have the following.
YSS = GDC USS  where GDC = DC Gain = G[1]
        What that means is that if we have any input that reaches a steady state, then the output will reach a steady state equal to the input steady state times the DC gain.  There are some things to worry about.
Transfer Functions For Higher Order Systems

        In the last section, we looked at a first order system.  It had one pole and it satisfied a first order difference equation.  We need to examine higher order systems - systems with more poles and which satisfy higher order difference equations.

        We will start with a second order system.

yk = ayk-1 + byk-2 + cuk
Y[z] = z-1aY[z] + z-2bY[z] + cU[z]

        Once we have the difference equation transformed, we can solve for the ratio of the output transform to the input transform.  Solving for Y[z]/U[z], we get:

Y[z]/U[z] = c/(1 + z-1a+ z-2b)

= z2c/(z2 + a z+ b)

        This is the transfer function for this system, and as we noted previously, it is a function of z.  Note also that this system satisfies a second order difference equation and that the system has two poles.


System Performance

        Here's a question for you.

        In order to answer that question, we will have to consider the step response of a sampled system with two poles - a second order sampled system.  The output of the system will be:

Y[z] = U[z]* z2c/(z2 + a z+ b)

        We need to compute the inverse transform of Y[z] to get the response.  It helps if we have the poles, so let us find the poles.

        We have a pole at z = -1, and two more poles that are solutions of:

z2 + a z+ b = 0

Each pole in the response will make a contribution to the response.

         We can inquire about different aspects of the response, and one immediate question is:         We need to know the DC gain to compute the steady state response.  If we input a constant to the system, and if the response of the system settles out to a constant steady state value, then the ratio of the output steady state value to the input constant is the DC gain.

        Let's look at that in our example system.  If we have a step input, the transform of the output is given by:

Y[z] = z3c/(z2 + a z+ b)(z - 1)

        We also know the final value theorem, and we clearly need to apply it to this situation, so we need to examine the limit:

Note that (1 - z-1) is the same as (z - 1)/z, so this limit becomes:

= c/(1 + a +b)

        Here you can play a clip that will let you see the effect of pole position on the step response.  We have adjusted the system to have a constant DC gain of 1.0, and the input is a unit step.

Note the following as the clip plays.

        We can relate the performance to the pole position.  The quadratic factor has two poles, and they can be two real poles or a pair of complex conjugate poles.  The poles are solutions of:

 z2 + a z+ b = 0

and, the exact solutions are given by:

We will examine the two specific cases separately.

        For complex poles, the discriminant will be negative.  In that case, the poles are at:

and we can compute the magnitude of the poles.

        We know from the first lesson on sampled systems that the magnitude of the pole determines the decay rate, and we can easily compute the magnitude of the poles.  Both poles have the same magnitude because the two poles are complex conjugates.  We can form the sum of the squares of the real and imaginary components of the  poles.  That's going to be the square of the magnitude.

        If we know how rapidly we want the system to respond, then we can put some bounds on the pole locations.  Let's look at a specific situation and do some calculations of response time.
Example

E1  Given a second order sampled system (two poles) where we can place the poles wherever we want, we will examine the following question.

        We know that the the system will have a transfer function with a denominator of z2 + a z+ b.  Since we know the form of the transfer function, we know - from the material above - that the magnitude of the two poles is b0.5.

        Now, we want to guarantee that the system response will die out 90% of the way in ten sample periods, and we know that the response will contain a term of the form:

C1z1k+ C2z2k

This is the decaying part of the response, and we want it to die out to 10% of the initial value in 10 sample periods.  However, we know that both of the roots can be written in two forms.

And, the response, is going to have two terms.

C1Akejfk+ C2Ake-jfk

We can bound the response (taking advantage of the fact that C1 = C1*, so |C1| = |C2|.

C1Akejfk+ C2Ake-jfk < 2|C1||A|k

And this will decay to 10% of its original value when:

|A|k = 0.1|A|
 or when:
kln(|A|) = ln(0.1) + ln(|A|)
or when:
k = [ln(0.1) + ln(|A|)]/ln(|A|)

Actually, for the problem above, we want k to be 10, so we must have:

10ln(|A|) = ln(0.1) + ln(|A|)

or

11ln(|A|) = ln(0.1)
ln(|A|) = ln(0.1)/11
|A| = 0.811

Since

|A| = 
, we have to have b = 0.658.
Example/Simulation

        Here is a simulation of a sampled system.  In this simulation you have:

yk = ayk-1 + byk-2 + cuk

You can enter a, b and c into the text boxes and run the simulation.

You should be able to enter a value of 0.6 for b and see that the response gets to within 10% of the final value in just about 10 sample periods.  (Note that the horizontal scale is in sample periods for this simulation.)



Problems

Links To Related Lessons

Other Lessons On Sampled Systems

Moving Along - More Advanced Material
Send us your comments on these lessons.