Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

extractRecent (J1939)

Occurrences of most recent J1939 parameter groups

Syntax

extractedPGs = extractRecent(pgrp)
extractedPGs = extractRecent(pgrp,pgname)

Description

example

extractedPGs = extractRecent(pgrp) returns the most recent instance of each unique parameter group found in the array pgrp, based on the parameter group timestamps.

example

extractedPGs = extractRecent(pgrp,pgname) returns the most recent instance of parameter groups whose names match any of those specified in pgname.

Examples

collapse all

Extract the most recent of each parameter group.

extractedPGs = extractRecent(pgrp)

Extract the most recent of each parameter group named 'PG1' or 'PG2'.

extractedPGs = extractRecent(pgrp,{'PG1' 'PG2'})

Input Arguments

collapse all

J1939 parameter groups, specified as an array of ParameterGroup objects. Use thej1939ParameterGroup or receive function to create ParameterGroup objects.

Names of J1939 parameter groups to extract, specified as a character vector, string, or array of these.

Example: 'PG1'

Data Types: char | string | cell

Output Arguments

collapse all

Extracted parameter groups, returned as an array of ParameterGroup objects.

Introduced in R2015b

Was this topic helpful?