Bode plots of discrete systems with different sample times

조회 수: 9 (최근 30일)
Martin
Martin 2011년 3월 10일
Hello everyone,
I am struggling with following problem: To optimize my control system I plotted the control loops using Bode diagram. It worked well as continuous. Now I want to refine it and respect the sampling times. So I am using the macro c2d to discretize it. However, I cannot mix transfer functions of blocks with different sampling times (e.g. 125 us, 500 us). Does anyone have any idea how to make it? It would help me A LOT! Thanks for any hint!
Martin
  댓글 수: 1
Paulo Silva
Paulo Silva 2011년 3월 10일
That's one interesting question, hope someone can provide a good solution for it, +1 vote , good luck

댓글을 달려면 로그인하십시오.

답변 (1개)

Doug Eastman
Doug Eastman 2011년 4월 18일
The only way to combine those two different transfer functions with the Control System Toolbox is to resample the faster model to the slower 500 us sample time using d2d.
With Simulink, however, you can combine discrete systems of different rates and continuous systems very easily. To get the bode plot you would need to either linearize the Simulink model (which will give you the same result as resampling) or do frequency response estimation using Simulink Control Design.
  댓글 수: 3
Doug Eastman
Doug Eastman 2011년 4월 19일
I couldn't find a good reference to confirm, but I think in general the best approach (and what Simulink Control Design defaults to) is to use the LCM (least common multiple) of the sample times which in Martin's case is 500 us (or the slowest rate). This will always involve downsampling the transfer functions to slower rates.
Alternatively you could pick the GCF (greatest common factor) which would involve upsampling the transfer functions to the fastest rate (or possibly a faster rate than any of the TFs). And again I don't have any good resources to point to, but my hunch (based on one simple experiment I performed) is that this does not give you accurate results (or at least creates much higher order transfer functions that don't include any additional useful information).
Doug Eastman
Doug Eastman 2011년 4월 19일
But if someone has more information about when to upsample vs. downsample I'd love to hear it!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by