Adding a delay to input reading in Simulink
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to delay the input of an analog reading so that it only reads every 10 seconds, while the rest of the program still runs. I tried the variable time delay but that didn't give me the result I wanted (although it is possible I am using it incorrectly). Any ideas? I don't want to delay the entire model, just this one input.
0 件のコメント
回答 (1 件)
Brian Hannan
2017 年 8 月 17 日
You can use a Sample and Hold block for this. Or you can create a trigger signal with a 10-sec. period to drive a simple enabled subsystem that just passes its input signal value.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Modeling についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!