So, let us continue what we left at the end of the previous lecture. We were looking into the pulse transfer function for a zero order hold, what we had in front of us was this that g of s would be equal to g of H multiplied by g of p, where g of H would be the Laplace transform corresponding to zero order hold and g p is the Laplace transform of the process. Now, what you would like to do is this that I have identified g of H as 1 upon s 1 minus e to the power minus T s.
And imagine that you have a first order process, so, I will have g of p is equal to K upon tau s plus 1. So, therefore, for this intermediate combined block my g of s would be what, K upon s tau s plus 1, 1 minus e to the power minus T s and what was our procedure. Our procedure was to take an inverse Laplace transform of this transfer function itself.
So, therefore, what would this p equal to, g of t is equal to have we come across this particular functional form before. In fact, we did we wrote this as the inverted it and wrote it as the response of rectangular pulse function. So, from there I can write this as K 1 minus e to the power minus t by tau for t less than capital T capital T is the sampling time and I have K 1 minus e to the power minus t by tau minus K 1 minus e to the power minus t minus capital T upon tau for t greater than capital T.
Remember that what I am doing is I am using the shifting property of Laplace transforms. Now, what I need to do is I need to determine g of z from g of t. So, I am assuming that these are the continuous functions and I will sample the functions at certain values of time given as n times t wherein n is equal to 0, 1, 2 and so on.
I can write g of z as what, I can use the shifting property of the z transform and shifting property of z transform is simply that you need to multiply the quantity by z to the power minus 1. So, the entire z transform of this function would be K 1 minus z inverse minus the Laplace transform of e to the power minus t by tau is K multiplied by 1 minus e to the power minus capital T by tau times z inverse. Now, we have to shift because this is a shift in this equation, so, it will be minus K times z inverse the shifting property.
In case you have any doubt, I would encourage you to look into the shifting property of z transforms. I understand we have not gone into the details. At this point of time I would say that for shifting the way you multiply the transform by e to the power minus s t in Laplace transform you here multiply by z inverse.
1 minus z inverse this will become plus K upon again multiplied by the inverse 1 minus e to power minus capital T by tau z inverse. And I can do some simplification from where I get g of z let me write the final expression g of z should be equal to K 1 minus e to the power minus capital T by tau multiplied by z inverse divided by 1 minus e to the power minus t by tau z inverse. So, now, the way you used to remember the first order transfer function Laplace transfer function for first order process was K upon tau s plus 1 simple expression.
This is an analogous expression for z transform first transfer function for first order process. K multiplied by 1 minus t to the minus t by tau times z inverse the whole divided by 1 minus t by tau 1 minus e to the power minus t by tau multiplied by z inverse. This is the transpose transfer function.
Now, if this is the pulse transfer function, can I determine the response of the system? Let us try to determine the response. So, the response of response of a first order system and let me write here with a zero order hold.
We have known this. So, I have g of p as simply K upon tau s plus 1 and I have g of H as simply 1 upon s 1 minus e to the power minus capital T s. Now, I will have my g p g H as this K upon tau s plus 1, 1 upon s, 1 minus e to the power minus T s and then what do you would like to do?
Well, you can segregate this in two parts. K upon s tau s plus 1 minus K into e to the power minus T s upon s tau s plus 1. And therefore, you see that you have K upon s multiplied by tau s plus 1, K upon s tau s plus 1 is common except that you have multiplied the second term with e to the minus T s.
So, it is a shift, you understand. You can convert as I did previously you can convert the s domain to t domain and then convert t domain to s domain. So, you have you are in s domain and then what you did, what I did previously a few moments back that I converted it to t domain and then from t domain I got the z domain transfer function.
If I know all the inter conversions clearly at the back of my head, I can do this transformation directly. I can directly go from s domain to z domain. So, let us see how do I do that?
I know that there is a shift function and therefore, whenever there is a shift function I multiply I have to multiply ultimately with z inverse. So, therefore, all I need to do is I need to worry about that transformation of K upon s tau s plus 1 and I know that this is basically 1 upon s plus 1 upon tau 1 upon s plus 1 by tau. I know the partial fraction.
So, therefore, what I can do is I can and I know that 1 over s is the Laplace transform of a unit step function and the corresponding Laplace transform of corresponding z transformation of this unit function will be 1 upon 1 minus z inverse. So, this is how am I doing. I am doing this at the back of my head and therefore, and then I will need to multiply the second term by z inverse so, that I take into account the shifting property.
So, therefore, I will club all of this. I will do this K 1 minus z inverse. 1 is for the original, z inverse is for the shift multiplied by multiply by what, 1 over s we will have the contribution of 1 upon 1 minus z inverse plus 1 over tau and 1 upon s plus 1 over tau would result in e to the power minus t by tau and then you do the z transformation and that would be equal to 1 upon 1 plus e to the power minus t by tau z inverse.
See, I have given you both the methods. I have shown you today how to go from s domain to t domain, t domain to the z domain. Here what I have done is I have imagined the processes which are going on.
I said that this particular term corresponds to the instep input. So, what is the corresponding z transform of the step input, what is the corresponding. So, if I invert I get a exponential what is the corresponding z transfer from z exponential and so on and this is what I get.
And if I simplify this I should get the same answer which is here K multiplied by 1 minus e to the power minus capital T by tau z inverse multiplied by 1 minus e to the power minus t by tau. So, this is your g of z. So, implies that the g of z would be this.
This is your g of z. Let me write g of z here, g of z is equal to what? K times 1 minus we forgot z inverse in the previous expression there should be one z inverse also.
So, in fact we wrote that was correct. So, 1 minus e to the power minus t by tau z inverse, we had written z inverse. So, it is all okay, divided by 1 minus e to the power minus t upon tau z inverse.
This is your pulse transfer function and now I subject this pulse transfer function to a step input. So, I have u of z. For a step input of amplitude A, I know that this is going to be equal to A upon 1 minus z.
inverse. This is equation number 2. So, what is y hat of z?
y hat of z is equal to u hat of z multiplied by g of z which will give me AK 1 upon 1 minus z inverse multiplied by 1 minus e to the power minus t upon tau z inverse divided by 1 minus e to the power minus T capital T upon tau inverse. Now, what do I need to do? What I need to do is I need to take the inverse Laplace transform.
Well, if I look at this expression, what I can see is that I can write this entire thing as simply AK multiplied by first term minus AK multiplied by second term and then what I will do is I will take the inverse z not Laplace I have been saying Laplace. I will need to take the inverse z transformation. So, when I simplify this and do the inverse z transformation what I get is what I have in front of me.
So, let me write this directly what I should get is this AK 1 minus e to the power minus n capital T upon tau. So, this is y of z. Let me repeat what I have done.
I have simplified this expression, split it into two terms and took the inverse Laplace inverse and what I get is not Laplace inverse, z inverse what I simply get is this y of not z y of n T, n capital T. And what will this give me? This will give me the time evolution of the system when your discrete time system is subjected to a unit discrete time input and your discrete time your model was continuous it was passed through first order hold.
Let me repeat you provided a system with a discrete input of magnitude A, your model was continuous the transfer function was given, K upon tau s plus 1. You sent the output through a zero order hold so as to get a continuous output. Let us see.
How does this look like? Now, the output is continuous but since it is zero order hold you still have the solutions which would be in the form of steps. Let us plot this and let us see, it looks anywhere close to what we have studied till now.
So, I have this I have A, I have K, I have the sampling time T and I have the time constant tau. To start with, let me put this as 1, 1, the sampling time is 0. 1 and the time constant is 1.
And then what I need to do is this so I have with it here I have n because n will be the discrete time in which I am doing the analysis and y n T, y n capital T is my discrete output. So, it is n starts from 0 and you go all the way to the natural number. So, is equal to this plus 1.
Let me fill this up to 10 and what is y f? y f n T this is equal to what A multiplied by K multiplied by 1 minus e to the power minus n into T capital T divided by tau. And in all these cases everything corresponding to B1 and so on would be constant.
So, let me make this constant B, B, B, B, B, B, B and B. And let us evolve the system so, this is the evolution of the system n versus T. So, let me plot this n versus T and let me get rid of the text.
Now, again I may not worry about the text anymore. So, let me make this a little smaller. Let me get rid of this this is what I have.
So, what do you see here, is it anything like what you saw previously. For a first order response of a continuous system you have y of t versus t subjected to this input A looking like this asymptotically you reach A. This is the first order response, step step function of A.
How does this look like in this case? You see here asymptotically reaching this but it has not reached the value yet. So, can I do something with my parameters, so, as to get this these discrete values reach the upper point.
Well I can do 1 thing I can reduce the time constant. So, let me reduce the time constraint to say 0. 5.
You see the curve has shifted to now 0. 86. Let me repeat your previous ultimate value was 0.
63. Now, your ultimate value with the reduction in the time constant is 0. 86 you are going up.
I can make it even smaller 0. 2 and you see now you have reached 0. 99.
So, you asymptotically are reaching the end forced input. And now let me make A as 2, the final value is reaching 1. 98.
So, A 2 will give you the ultimate value which the system would reach. And in reality, how would the output for such a system look like? The output from such a system because you have a continuous output.
So the output from such a system would look like this. You have a first order hold. If you remember how the first order hold works.
This is how the output would look like. There would be steps. Obviously the steps seem to be more continuous like towards the end because that gradient has become smaller.
So, this was the response of the system equipped with a zero order not first or hold, zero order hold. The response of the system with zero order hold, when you have the process function transfer function which is first order. Now, you can do one more thing instead of the first order simple first order system you have two first order systems in series.
This is something which we have looked into previously. So, what would happen to my process transfer function, g of p and g of p is equal to what, K1 upon in fact K1 K2 upon tau 1 s plus 1 tau 2 s plus 1. This will become my process transfer function.
My g of H is the same 1 upon s 1 minus e to the power minus T s. So, therefore, g p multiplied by g H is what? K1 K2 1 minus e to the power minus T s multiplied by s tau 1 s plus 1 tau 2 s plus 1.
Now, you need to determine g of z. How will you determine g of z? Well the procedure is straightforward.
I have in the denominator three terms, previously we split it in for the first order case into two terms. Now, this will get split into three terms, one would involve 1 over s. Now, the inverse would be a constant inverse would correspond to the z transform of a constant function which would be 1 over 1 minus z inverse.
Then you have tau 1 s plus 1 which would be converted to s 1 upon s plus 1 upon 1 upon s plus 1 upon tau 1 which would be converted to its corresponding z transform and similarly, the third term would be converted to the corresponding z transformer. So, let me write down the final expression for you what you should get is something like this, y of z is 1 minus z inverse, why did I get z inverse, in fact 1 minus z inverse because you have a shifting function e to the power minus T s should immediately click you that there is a shifting. So, the inverse in time inverse Laplace in time would give you a shift in time and then you further do a z transform 1 minus z inverse is what you get, multiplied by 1 upon 1 minus z inverse as I said constant function.
So, z transform would be this plus tau 1 upon tau 2 minus tau 1, 1 upon 1 minus e to the power minus capital T upon tau 1 z inverse minus tau 2 upon tau 2 minus tau 1, 1 upon 1 minus e to the power minus capital e power tau 2 z inverse. So, I have this expression and when you invert this you would simply get y of n T, y of n T is what? We forgot K here, should be K, y of n T subjected to unit step function so, before I do this let me write here before y of n T, let me write here u bar of z is equal to A upon 1 minus z inverse.
So, this would give me y of n T is equal to what? A K multiplied by the very apparent first term is simply the constant plus tau 1 by tau 2 minus tau 1 e to the power minus n capital T by tau 1 minus tau 2 by tau 2 minus tau 1 e to the power minus n T upon tau 2. So, therefore, it is pretty straightforward to see that you get an expression if you remember how what we got in continuous domain analysis little back is an expression which is very similar except that instead of discretized n, we had T instead of discretized n T we had continuous function t.
So, therefore, when you plot this, you are essentially going to get the same form of response as you got. Previously except that now, you will have points and those points would have to be joined by steps. So, what we learned today is that if you have a continuous domain process transfer function and then you would like to determine the pulse transfer function of the system, then what you do is you multiply the Laplace domain transfer function with the Laplace domain transfer function of the hold function and then do an inversion and from that inverted function you do at discrete intervals of time do the z transform.
From that z transform you will get the pulse transfer function. When you multiplied that pulse transfer function to the input function, input z transform, you will get the y of z quantity, which is the z transform of the output function. You can invert it and get the dynamic response.
We will learn more about the features of these dynamical behavior about which are relevant to discrete time systems in the next lecture. Till then, goodbye.