Can Simulink model a microcontroller randomly missing control inputs?

8 ビュー (過去 30 日間)
Christian Runyon
Christian Runyon 2022 年 2 月 16 日
回答済み: Vidip 2023 年 12 月 21 日
Is there a simulink block that can take an input and at random intervals hold it 2-3 time ticks before outputting? The "Rate Transition" block does this but in a consistant mannor but I'm interesting in looking at something which has random variation in the timing.

回答 (1 件)

Vidip
Vidip 2023 年 12 月 21 日
I understand that you want to take an input and at random intervals hold it for 2-3 time ticks before giving output which also involves random variation in the timing. This can be done by using a combination of blocks, you can follow the below steps for the same-
  1. The input signal enters the Unit Delay block, which holds it for 2 or 3 time steps.
  2. The Random Number block generates a random value between 0 and 1 at each time step.
  3. The Switch block uses this random value to determine whether to output the delayed signal or the original input signal.
  4. If the random value is less than a certain threshold (e.g., 0.5), the delayed signal is outputted, creating the random hold.
For further information, refer to the documentation links below:

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by