Main Content

allNames

Class: cv.cvdatagroup
Package: cv

Get names of all models associated with cvdata objects in cv.cvdatagroup

Description

Get names of all models associated with cvdata objects in cv.cvdatagroup.

models = allNames(cvdg) returns a cell array of character vectors or strings identifying all model names associated with the cvdata objects in cvdg, an instantiation of the cv.cvdatagroup class.

models = allNames(cvdg, simMode) returns a cell array of character vectors or strings identifying all model names having the simulation mode simMode associated with the cvdata objects in cvdg, an instantiation of the cv.cvdatagroup class.

Input Arguments

expand all

Instance of class cv.cvdatagroup.

Simulation mode associated with the cvdata objects in cvdg. Valid values include the following:

Object SpecificationDescription

'Normal'

Model in Normal simulation mode.

'SIL' (or 'PIL')

Model in Software-in-the-Loop (SIL) or Processor-in-the-Loop (PIL) simulation mode.

'ModelRefSIL' (or 'ModelRefPIL')

Model reference in Software-in-the-Loop (SIL) or Processor-in-the-Loop (PIL) simulation mode.

'ModelRefTopSIL' (or 'ModelRefTopPIL')

Model reference in Software-in-the-Loop (SIL or Processor-in-the-Loop (PIL) simulation mode with code interface set to top model.

Output Arguments

expand all

All model names associated with the cvdata objects in cvdg.

Examples

Add three cvdata objects to cvdg and return a cell array of model names:

a = cvdata;
b = cvdata;
c = cvdata;
cvdg = cv.cvdatagroup;
add (cvdg, a, b, c);
model_names = allNames(cvdg);
model_names_sim_mode = allnames(cvdg, 'ModelRefSIL')