Trigger a pulse train based on control input in Simulink

I am trying to trigger a pulse train or a packet of signal (amplitude modulated pulse) based on the control input. In other words, whenever the subsystem is enabled, a packet of data should be transmitted. I tried with enabled sub-system and repeating sequence stair blocks., but could not match the pattern.

4 件のコメント

Ankit
Ankit 2021 年 6 月 18 日
could you post some screenshots of your output and what you done in simulink to have better understanding..
Ben McMahon
Ben McMahon 2021 年 6 月 18 日
Have a look at the Stateflow documentation https://uk.mathworks.com/help/stateflow/gs/finite-state-machines.html. This is normally the best method for implementing this sort of behaviour.
If you attach your model then others can give more specific advice.
Nandagopalan Venugopalan
Nandagopalan Venugopalan 2021 年 6 月 20 日
In this model, I tried to come up with a logic, that whenever the interogator sends a high signal, it triggers a countdown timer(6 time steps) and using that counter value, the custom signal is send across. But what I am intrested is, the rising edge of the interogator shall trigger a custom signal, which will be transmitted across. Here the custom signal is always running, and based on the counter value, it is send across.
I tried modifying the approximate edge function (State flow) based model, but it does not work on a continuous loop, rather only once per simulation., it triggered the state flow chart on the first rising edge but subsequent ones are not triggerred.
Vinay Gurram
Vinay Gurram 2021 年 6 月 23 日
Hi Can you share how you are doing this with enabled sub system, that might help to resolve.

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

回答 (0 件)

カテゴリ

製品

リリース

R2018b

質問済み:

2021 年 6 月 16 日

コメント済み:

2021 年 6 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by