RaspberryPi udp send block - trigger a message?

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by