RaspberryPi udp send block - trigger a message?

1 visualización (últimos 30 días)
Marcus Kreuzer
Marcus Kreuzer el 10 de Dic. de 2018
Comentada: Gao Yang el 27 de En. de 2020
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

Respuesta aceptada

Marcus Kreuzer
Marcus Kreuzer el 20 de Dic. de 2018
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 comentario
Gao Yang
Gao Yang el 27 de En. de 2020
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.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by