get

Class: cv.cvdatagroup
Package: cv

Get cvdata object

Description

Get cvdata object.

get(cvdg, model_name) returns the cvdata object in the cv.cvdatagroup object cvdg that corresponds to the model specified in model_name.

get(cvdg, model_name, simMode) returns the cvdata object in the cv.cvdatagroup object cvdg that corresponds to the model specified in model_name having the simulation mode simMode.

Input Arguments

expand all

Instance of class cv.cvdatagroup.

Model to which the cvdata object in the cv.cvdatagroup object cvdg corresponds.

Simulation mode for the cvdata object in the cv.cvdatagroup object. 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 a cvdata object from the specified Simulink® model:

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