allSimulationModes

Class: cv.cvdatagroup
Package: cv

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

Description

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

simModes= allSimulationModes(cvdg) returns a cell array of character vectors or strings identifying all simulation modes associated with the cvdata objects in cvdg, an instantiation of the cv.cvdatagroup class.

simModes= allSimulationModes(cvdg, modelName) returns a cell array of character vectors or strings identifying all simulation modes associated with the model modelNamein cvdg, an instantiation of the cv.cvdatagroup class.

Input Arguments

expand all

Instance of class cv.cvdatagroup.

Model with which simulation modes are associated.

Output Arguments

expand all

All simulation modes associated with 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.

Examples

Get the Simulation Modes Associated with Three cvdata Sets

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_simModes = allSimulationModes(cvdg)