Discretizing a continuous state model for use in HIL

조회 수: 2 (최근 30일)
Shyam
Shyam 2013년 11월 27일
편집: Shyam 2013년 11월 27일
I have developed a model with continuous integrators. To discretize them, i had replaced them with discrete integrators,its working fine for Ts=1e-4, but i need to use Ts=1e-3; where its not getting simulated properly.
Anyone any suggestions,please post. Thanks

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 27일
You didn't precise how you replaced the other blocks, and I don't think you are doing the right thing. You also did not give enough information about your model (linear or not for example). If your model is linear you can use the function c2d to discretize it.
  댓글 수: 3
Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 27일
To be sure that you are doing the right thing, don't replace any block, just put a ZOH block with desired sample time after each output of your model (if your model is mimo) and before each input. Another important thing is: how did you choose the sample time, you can't set any sample time you want, it depends on the dynamic of your model, maybe 1e+3 is too large
Shyam
Shyam 2013년 11월 27일
편집: Shyam 2013년 11월 27일
1e-3 as required by HIL, which works only with discretized models...with zoh at the input and fedback signal and with Ts=1e-3...works fine..

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

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by