Specify callback function to execute when datagram is received
You configure DatagramReceivedFcn to execute a callback function when a datagram has been received. The callback executes when a complete datagram is received in the input buffer.
If the RecordStatus property value is on, and a datagram-received event occurs, the record file records this information:
The event type as DatagramReceived
The time the event occurred using the format day-month-year hour:minute:second:millisecond
To learn how to create a callback function, refer to Creating and Executing Callback Functions