Discrete sampling on continuous-time model

Hello,
For an assignment I have a model in simulink. The model is a statefeedback model in continuous time. Because the system itself uses a computer to control the system I need to control part to be discrete, while the model is continuous.
For the input I achieved it by using the zero-order hold. However I also need to sample the state before it is multiplied by the feedback matrix K. How can I sample the state(where Scope2 measures)? I tried to also use a zero-order-hold, but this gave errors, due to the dimensions. Using a mux and demux does not solve this problem. Regards, Jan Jaap

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 30 日
If your are working with continuous system, why are you using sample time, The numeric problem is handled by your solver

サインインしてコメントする。

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 30 日
編集済み: Azzi Abdelmalek 2012 年 11 月 30 日

0 投票

Have you tried to set the sample time of your Gain2 block?

カテゴリ

ヘルプ センター および File ExchangeLinearization についてさらに検索

製品

質問済み:

2012 年 11 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by