Simulink Real-Time get Latest Data from UDP Receive Block

3 ビュー (過去 30 日間)
Ingomar Schröder
Ingomar Schröder 2020 年 8 月 26 日
回答済み: Dimitri MANKOV 2022 年 2 月 11 日
Hi,
is it possible to get the latest data (not First In First Out) from the Simulink Real-Time UDP Recive Block? The UDP Receive Block from the Instrument Control Toolbox does that, but is not supported for code generation.
Many Thanks!

回答 (1 件)

Dimitri MANKOV
Dimitri MANKOV 2022 年 2 月 11 日
Hi Ingomar,
If you know the maximum number of messages that can be sent on your network between two consecutive executions of the UDP Receive block, you can use that number as the "Receive Width" parameter, and then use the last non-zero value output by the block.
I hope that's helpful!

カテゴリ

Help Center および File ExchangeDevelopment Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by