Skip to Main Content Skip to Search
Product Documentation

addBaseline - Class: cgv.CGV
Package: cgv

Add baseline file for comparison

Syntax

cgvObj.addBaseline(inputName,baselineFile)
cgvObj.addBaseline(inputName,baselineFile,toleranceFile)

Description

cgvObj.addBaseline(inputName,baselineFile) associates a baseline data file to an inputName in cgvObj. cgvObj is a handle to a cgv.CGV object. If a baseline file is present, when you call cgv.CGV.run, cgvObj automatically compares baseline data to the result data of the current execution of cgvObj.

cgvObj.addBaseline(inputName,baselineFile,toleranceFile) includes an optional tolerance file to apply when comparing the baseline data to the result data of the current execution of cgvObj.

Input Arguments

inputName

A unique numeric or character identifier assigned to the input data associated with baselineFile

baselineFile

A MAT-file containing baseline data

toleranceFile

File containing the tolerance specification, which is created using cgv.CGV.createToleranceFile

Examples

A typical workflow for defining baseline data in a cgv.CGV object and then comparing the baseline data to the execution data is as follows:

  1. Create a cgv.CGV object for a model.

  2. Add input data to the cgv.CGV object by calling cgv.CGV.addInputData.

  3. Add the baseline file to the cgv.CGV object by calling cgv.CGV.addBaseline. which associates the inputName for input data in the cgv.CGV object with input data stored in the cgv.CGV object as the baseline data.

  4. Run the cgv.CGV object by calling cgv.CGV.run, which automatically compares the baseline data to the result data in this execution.

  5. Call cgv.CGV.getStatus to determine the results of the comparison.

See Also

cgv.CGV.addInputData | cgv.CGV.createToleranceFile | cgv.CGV.getStatus | cgv.CGV.run

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS