Simulink Real-Time get Latest Data from UDP Receive Block
2 views (last 30 days)
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.
Dimitri MANKOV on 11 Feb 2022
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!