Purpose

Closes a specified A2L Database.

Format

Input

DB reference in is the task reference from the initial database task VI. The task reference is originally returned from MC Database Open.vi.
Error in is a cluster which describes error conditions occurring before the VI executes. If an error has already occurred, the VI returns the value of the error in cluster to error out.
status is TRUE if an error occurred. Unlike other VIs, this VI will execute when status is TRUE.
code is the error code number identifying an error. A value of 0 means success. A negative value means error: VI did not execute the intended operation. A positive value means warning: VI executed intended operation, but an informational warning is returned. For a description of the code, wire the error cluster to a LabVIEW error-handling VI, such as the Simple Error Handler.
source identifies the VI where the error occurred.

Output

Error out describes error conditions. If the Error in cluster indicated an error, the Error out cluster contains the same information. Otherwise, Error out describes the error status of this VI.
status is TRUE if an error occurred.
code is the error code number identifying an error. A value of 0 means success. A negative value means error: VI did not execute the intended operation. A positive value means warning: VI executed intended operation, but an informational warning is returned. For a description of the code, wire the error cluster to a LabVIEW error-handling VI, such as the Simple Error Handler.
source identifies the VI where the error occurred.

Description

MC Database Close.vi must always be the final M&C VI called for each communication task. If you do not use MC Database Close.vi, the remaining task configurations can cause problems in the execution of subsequent Measurement and Calibration applications.

MC Database Close.vi is an advanced function for database handling. In most cases it is sufficient to use MC ECU Close.vi instead.

Unlike other VIs, MC Database Close.vi will execute when status is TRUE in Error in. Because this VI clears the task, the task reference is not wired as an output.