User`s guide

extractRecent
12-21
extractRecent
Select most recent message from array of messages
Syntax
extracted = extractRecent(message)
extracted = extractRecent(message, messagename)
extracted = extractRecent(message, id, extended)
Description
extracted = extractRecent(message) parses the given array message and returns
the most recent instance of each unique CAN message found in the array.
extracted = extractRecent(message, messagename) parses the specified array
of messages and returns the most recent instance matching the specified message name.
extracted = extractRecent(message, id, extended) parses the given array
message and returns the most recent instance of the message matching the specified ID
with the specified standard or extended type.
Input Arguments
message
An array of CAN message objects that you specify to parse and find the specified
messages by name or ID.
messagename
The name of the message that you specify to extract.
id
The id of the message that you specify to extract.