How to model discrete sensor simulink

3 ビュー (過去 30 日間)
Jan De Vries
Jan De Vries 2012 年 6 月 30 日
How can I model a discrete sensor in a standard feedback loop model in Simulink?
The sensor I try to model gives output at any time, but changes only 10 times per second and gives output in 1 decimal. So the feedback signal needs to be round up to 1 decimal and be given 10 times per second.
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 7 月 2 日
Sorry, I'm not sure exactly what kind of help you're looking for. So far, it seems like you might need to set your sensor block's sample time to 0.1 second, and perhaps connect a "Rounding Function" block at the output of the sensor.

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

回答 (1 件)

Jan De Vries
Jan De Vries 2012 年 8 月 28 日
It turned out to be quite simple, using the "Quantizer" block

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by