RaspberryPi udp send block - trigger a message?

1 回表示 (過去 30 日間)
Marcus Kreuzer
Marcus Kreuzer 2018 年 12 月 10 日
コメント済み: Gao Yang 2020 年 1 月 27 日
Hi,
in a project we like to use RaspberryPi hardware to implement software-agents. Now we have communication problems in our network. It seems that the Simulink udp blocks delivered with toolbox 18.2. fire messages with each timestep. The documentation does not explain how this block works, so my questions are:
How does this block behave regarding changes in the signals? Does it send all the time or only after some message-content changed?
Is there a way to trigger messages? (for example, only send a message if there is some change in a signal?)
Is there a way to send messages only once every x timesteps? (creating some kind of timeslots?)
I know other udp blocks, which have a trigger function working with a true/false-bit or automatically with/at changes in signals.
Thank you for your help!
Many Greetings,
Marcus

採用された回答

Marcus Kreuzer
Marcus Kreuzer 2018 年 12 月 20 日
Hi,
we finally found a solution, which seems to work: If you put the UDP Message Block in a triggered subsystem, you can turn the interface on/off on your behalve. (This "construction" survives the compiler und and is able to run on the Pi).
Many Greetings,
Marcus
  1 件のコメント
Gao Yang
Gao Yang 2020 年 1 月 27 日
Dear Marcus,
I met the same problem like yours. I want to ask which UDP message block you used. Is the DSP System Toolbox-2 fit to send the signals in simulink? I received a series of disordered data in raspberrypi. How to analyze it? I am looking forward to your reply. Very thanks.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by