Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations pierreick on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turning a Laplace transfer function with time shifting into a z-transform transfer function

Status
Not open for further replies.
Feb 24, 2006
8
I have a continuous system, having L-transfer function F(s)G(s), followed by a sample-and-hold, according to the following scheme:

Input signal -> F(s) --> G(s) --> S&H(period = T) -> Output signal

The sample-and-hold samples its input signal at times t = nT (so T is the period).
I have:
F(s) = (1 - exp(-as))/s -> It integrates the input signal over the last a seconds
G(s) = (1 - exp(-Ts))/s -> It integrates its input signal over the last T seconds (the same T as the S&H)
S&H(s) = (1 - exp(-Ts))/s -> It gives me every T seconds the updated result from G(s)

Because of the S&H, the output signal is a staircase-shaped signal made of T-long steps.
Task: Given the output signal and known F(s), G(s) and S&H(s) I have to reconstruct the input signal.
It is not required to necessarily reconstruct the input signal pointwise. A staircase-shaped reconstruction (I guess with T-long steps) would be enough.

Because of this S&H and the staircase-shaped output signal I think that the best way is to approach the problem using the z-Transform, because this way the output signal can be represented through a polynom.
I have read in the literature that when there are continuous systems (like F(s) and G(s)) first one should turn their L-transform into the corresponding z-Transform.
Developing F(s)xG(s) I get terms like exp(-as)/s3, that is, a parabola shifted by a seconds, where a is not a multiple of T!: how can I find the corresponding z-Transform ? The z-transform time-shift rule applies only for time-shifts that are multiple of T.

Thanks to anybody who can give me suggestions.
 
Replies continue below

Recommended for you

I tried using wxMaxima. wxMaxima couldn't convert from the s-domain to the z-domain.
/* [wxMaxima: input start ] */
F(s):=(1-exp(-a*s))/s;
G(s):=(1-exp(-T*s))/s;
SH(s):=(1-exp(-T*s))/s;
F(s)*G(s)*SH(s);
partfrac(%,s);
ilt(%,s,t);
/* [wxMaxima: input end ] */


Peter Nachtwey
Delta Computer Systems
 
Thank you very much, PNachtwey.
Could you retry setting a = nT, with n equal to any integer (for example n = 3) ?

I've read some literature and found many examples of continuous systems preceded by a signal-discretizing S&H: because of the upstream S&H the z-transform should be employed.
But I have not seen any example of continuous system followed by a S&H and it's not clear to me, whether in this case too the usage of the z-transform is appropriate.
 
I am at work. I got out the big gun ( Mathematica )
In[40]:= ClearAll["Global`*"];
F:=(1-Exp[-a*s])/s
G:=(1-Exp[-T*s])/s
SH:=(1-Exp[-T*s])/s
F*G*SH
InverseLaplaceTransform[%,s,t]
FullSimplify[%]

Out[44]= ((1-E^(-a s)) (1-E^(-s T))^2)/s^3
Out[45]= 1/2 (t^2-(a-t)^2 HeavisideTheta[-a+t]+(t-2 T)^2 HeavisideTheta[t-2 T]-(a-t+2 T)^2 HeavisideTheta[-a+t-2 T]-2 (t-T)^2 HeavisideTheta[t-T]+2 (a-t+T)^2 HeavisideTheta[-a+t-T])
Out[46]= 1/2 (t^2-(a-t)^2 HeavisideTheta[-a+t]+(t-2 T)^2 HeavisideTheta[t-2 T]-(a-t+2 T)^2 HeavisideTheta[-a+t-2 T]-2 (t-T)^2 HeavisideTheta[t-T]+2 (a-t+T)^2 HeavisideTheta[-a+t-T])

The FullSimplify didn't do anything.
The HeavisideTheta function is 0 when x<0 and 1 when x>0

From the documentation
HeavisideTheta[x]
represents the Heaviside theta function \[Theta](x), equal to 0 for x<0 and 1 for x>0.
The HeavisideTheta function doesn't appear to be defined for x=0.

So the result appears to be the sum of simple functions that are activated at different times.



Peter Nachtwey
Delta Computer Systems
 
Are you sure about your Laplace transforms? You're showing 3 sample and holds, assuming the transforms are correct, so the first 2 functions are not integrals?

TTFN
I can do absolutely anything. I'm an expert!
faq731-376 forum1529
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor