Main Content

getAll

Class: cv.cvdatagroup
Package: cv

Get all cvdata objects

Description

Get all cvdata objects.

getAll(cvdg) returns all cvdata objects in the cv.cvdatagroup object cvdg.

getAll(cvdg, simMode) returns all cvdata objects in the cv.cvdatagroup object cvdg having the simulation mode simMode.

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.

Examples

Return all cvdata objects from the specified Simulink® model:

getAll(cvdg, 'slvnvdemo_cv_small_controller');
getAll(cvdg, 'slvnvdemo_cv_small_controller', 'ModelRefSIL');