Skip to Main Content Skip to Search
Product Documentation

getStatus - Class: cgv.CGV
Package: cgv

Return execution status

Syntax

status = cgvObj.getStatus()
status = cgvObj.getStatus(inputName)

Description

status = cgvObj.getStatus() returns the execution status of cgvObj. cgvObj is a handle to a cgv.CGV object.

status = cgvObj.getStatus(inputName) returns the status of a single execution for inputName.

Input Arguments

inputName

inputName is a unique numeric or character identifier associated with input data, which is added to the cgv.CGV object using cgv.CGV.addInputData.

Output Arguments

status

If inputName is provided, status is the result of the execution of input data associated with inputName.

ValueDescription
noneExecution has not run.
pendingExecution is currently running.
completedExecution ran to completion without any errors and output data is available.
passedBaseline data was provided. Execution ran to completion and comparison to the baseline data returned no differences.
errorExecution produced an error.
failedBaseline data was provided. Execution ran to completion and comparison to the baseline data returned a difference.

If inputName is not provided, the following pseudocode describes the return status:

if (all executions return 'passed')
	status = 'passed'
else if (all executions return 'passed' or 'completed')
  status = 'completed'
else if (any execution returns 'error')
	status = 'error'
else if (any execution returns 'failed')
	status = 'failed'
else if (any execution returns 'none' or 'pending'
	status = 'none'

See Also

cgv.CGV.addBaseline | cgv.CGV.addInputData | 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