addBaseline
Add baseline file for comparison
Syntax
cgvObj
.addBaseline(inputName,baselineFile)
cgvObj
.addBaseline(inputName,baselineFile,toleranceFile)
Description
associates
a baseline data file to an cgvObj
.addBaseline(inputName
,baselineFile
)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
.
includes
an optional tolerance file to apply when comparing the baseline data
to the result data of the current execution of cgvObj
.addBaseline(inputName
,baselineFile
,toleranceFile
)cgvObj
.
Input Arguments
|
A unique numeric or character identifier assigned to the input
data associated with |
|
A MAT-file containing baseline data |
|
File containing the tolerance specification, which is created using |
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:
Create a
cgv.CGV
object for a model.Add input data to the
cgv.CGV
object by callingaddInputData
.Add the baseline file to the
cgv.CGV
object by callingaddBaseline
. which associates theinputName
for input data in thecgv.CGV
object with input data stored in thecgv.CGV
object as the baseline data.Run the
cgv.CGV
object by callingrun
, which automatically compares the baseline data to the result data in this execution.Call
getStatus
to determine the results of the comparison.