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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by